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.Source

Gets the line of source code that generated the error.

[Visual Basic]
Public ReadOnly Property Source As String
[C#]
public string Source {get;}
[C++]
public: __property String* get_Source();
[JScript]
public function get Source() : String;

Property Value

The line of source code that generated the error.

Example [Visual Basic]

The following example returns the line of source code that caused the SQLError.

[Visual Basic]

Function GetErrorSource(sqlErr As SQLError) As String
   GetErrorMessage = sqlErr.Source
End Function

See Also

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