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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to trap ODBC errors exactly in VB

Status
Not open for further replies.

Rajeswari

Technical User
Oct 6, 2001
17
IN
I am using stored procedures to insert the data, if stored procedure fails VB gives a common error like &quot;<Stored procedure name> expects parameter &quot;. I want the exact ODBC error which is thrown by database.
 
Your connection whatever it is for example &quot;dcnDB&quot; has a collection called errors or something like that that keeps the Database real error with more description that Visual Basic does.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top