SqlError::LineNumber Property
.NET Framework (current version)
Gets the line number within the Transact-SQL command batch or stored procedure that contains the error.
Assembly: System.Data (in System.Data.dll)
Property Value
Type: System::Int32The line number within the Transact-SQL command batch or stored procedure that contains the error.
Line numbering starts at 1. If the value is 0, the line number is not applicable.
For more information on errors generated by SQL Server, 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: