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

  • Thread starter Thread starter Thomas Weingartner
  • Start date 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
 
Back
Top