dbTalk Databases Forums  

How do i get the database error code using C# with ole db (connectingwith "SAOLEDB.10").

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss How do i get the database error code using C# with ole db (connectingwith "SAOLEDB.10"). in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
terzis
 
Posts: n/a

Default How do i get the database error code using C# with ole db (connectingwith "SAOLEDB.10"). - 02-22-2011 , 10:23 AM






Hello,

I'm using C# to run queries on an sql database.
I use "SAOLEDB.10" and System.Data.OleDb;

When a query fails, i get an error code that is very different from
the errors i get in powerbuilder.
For example i get ErrorCode -2147217900 for Column 'RTM' not found.
That is instead of the regular -110, -112... -190 and so on

Does anyone know how to get the original sybase error code?

Thanks a lot

y

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.