Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ansi SQLSTATE error codes

Status
Not open for further replies.

Silverbeard

IS-IT--Management
May 29, 2001
2
CA
HI

I am currently trying to retrieve SQLSTATE error codes through ADO from SQL Server to conduct proper error handling, but i can't seem to find a listing of these error codes anywhere. Can somebody help?

I have written an application that automates database upgrades at the client site and since i have no idea what version of the database they have, i want to be able to elegantly handle "object exists" type of errors.
 

Check the following topics in SQL Books Online.
[ul][li]SQLSTATE Messages
[li]ODBC Error Messages
[li]Errors Collection and Error Object[/ul]
Terry
------------------------------------
People who don't take risks generally make about two big mistakes a year. People who do take risks generally make about two big mistakes a year. -Peter Drucker
 
Are you C++ programmer? John Fill
1c.bmp


ivfmd@mail.md
 
No, i manage a VB shop.

Cheers for the info tlbroadbent. I now have the codes i need, and since this is a published ansi standard, i'm assuming that errors raised from Oracle will map directly to one of these so that i won't have to change my error handling depending on the database i'm deploying to.

Nuno Borges
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top