SqlError.Number negativ in ADO.NET i.e. CommandTimeout

  • Thread starter Thomas Weingartner
  • Start date
T

Thomas Weingartner

Hi

When connecting with SqlClient to an SQL Server 2000, there will be thrown
SqlExceptions with an Errors collection in it returning SqlError class.

The VS.NET help on SqlError.Number says "This number corresponds to an entry in
the master.dbo.sysmessages table.", but I'm getting -2 for ADO.NET command
timeout and there are no entries in the sysmessages table for negative numbers.
So I believe these numbers will be generated by ADO.NET.

Where can I find a reliable source of these ADO.NET (SqlError.Number) error codes?


Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top