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;
The line of source code that generated the error.
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
SQLError Class | SQLError Members | System.Data.SQL Namespace | Number | State | Class | Server | Message | Procedure | LineNumber