oledberrors documentation

  • Thread starter Thread starter gvsb
  • Start date Start date
G

gvsb

Where can I find the documented OleDBError Numbers and what they mean?
Specifically i am trying to catch the error where a record update or
insertion has a field value that is a duplicate to something already
in the db and the field is specified as allowing no duplicates.
 
The OleDbError class Collects information relevant to a warning or error returned by the data source. This means that the numbers may vary based on your data source.

You should refer to the Data Source documentation's for what are the possible errors that it can return. If you don't have the documentation for the backend database, you
may try to create the situation where you expect the data source to through that error then catch for any error in your code then display all the different properties of the
exception. Now, you would know the error number that you would normally get in such case and then you could modify your code to catch explicitly for that error number.

I hope this helps!

Thanks,
Hussein Abuthuraya
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? For information about the Microsoft Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
 
Back
Top