SqlException::Errors Property
.NET Framework (current version)
Gets a collection of one or more SqlError objects that give detailed information about exceptions generated by the .NET Framework Data Provider for SQL Server.
Assembly: System.Data (in System.Data.dll)
The SqlErrorCollection class always contains at least one instance of the SqlError class.
This is a wrapper for SqlErrorCollection. For more information on SQL Server engine errors, see SQL Server Books Online.
The following example displays each SqlError within the SqlErrorCollection collection.
.NET Framework
Available since 1.1
Available since 1.1
Show: