Gets the name of the procedure that the SQL Server error occurred in.
[Visual Basic] Public ReadOnly Property Procedure As String [C#] public string Procedure {get;} [C++] public: __property String* get_Procedure(); [JScript] public function get Procedure() : String;
The name of the procedure.
The following example returns the procedure name that the error occurred in.
[Visual Basic]
Function GetErrorProcedure(sqlErr As SQLError) As String GetErrorProcedure = sqlErr.Procedure End Function
SQLError Class | SQLError Members | System.Data.SQL Namespace | Number | Source | State | Class | Server | Message | LineNumber