Gets the error message that was generated from the SQL Server adapter.
[Visual Basic] Public ReadOnly Property Message As String [C#] public string Message {get;} [C++] public: __property String* get_Message(); [JScript] public function get Message() : String;
The generated error message.
The following example returns the error message.
[Visual Basic]
Function GetErrorMessage(sqlErr As SQLError) As String GetErrorMessage = sqlErr.Message End Function
SQLError Class | SQLError Members | System.Data.SQL Namespace | Number | State | Source | Class | Server | Procedure | LineNumber