Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: ODBC RPC: msg#00144

db.tds.freetds

Subject: RE: ODBC RPC

>
> Thanks for the help.
>
> Some status with last nights build regarding RAISERROR: I
> seem to get the
> errors/diag recs that SQL generates when I do something bad
> (say like SELECT
> from a table that does not exist) but not those that I
> explicitly call in my
> Stored Procs. You should see the same thing...just put the stmt:
> RAISERROR('HELLO WORLD', 11, 1)
> in an SP. You never seem to get it. However, but the
> statement: SELECT
> foo FROM bar
> in and SP and sure enough, you get that error.
>
> The errors get raised just fine in regular ODBC using MS SQL
> driver (I have
> some common code that uses UNIXODBC/FreeTDS on Linux, or
> builds on WinNT to
> use MS OBDC). I get different results...the Linux version
> using FreeTDS
> loses the RAISERROR, the WinNT ver gets it.
>
> I have included the dump.txt. I am calling the stored
> spTestProc, which
> calls RAISERROR returning the text: "An error was
> encountered." I see the
> error text in the dump, just not available through ODBC API
> when I call
> SQLError (it gives -2, invalid handle).
>

Oh... you are using SQLError, I'll try with it (usually I use
SQLGetDiagRec).

> <<dump.txt>>
> Also... how in the heck do I bind and send DATETIME variables
> to an SP.
> That doesn't seem to work via SQLBindParameter using SQL_C_DATE. Any
> advice?
>

No, can you post a small test ?

bye
freddy77


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation