NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLError.LineNumber

Gets the line number that the SQL Server error occurred on.

[Visual Basic]
Public ReadOnly Property LineNumber As Integer
[C#]
public int LineNumber {get;}
[C++]
public: __property int get_LineNumber();
[JScript]
public function get LineNumber() : int;

Property Value

The line number.

Example [Visual Basic]

The following example returns the line the error occurred on.

[Visual Basic]

Function GetErrorLineNumber(sqlErr As SQLError) As Integer
   GetErrorLineNumber = sqlErr.LineNumber
End Function

See Also

SQLError Class | SQLError Members | System.Data.SQL Namespace | Source | Number | State | Class | Server | Message | Procedure