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

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;

Property Value

The name of the procedure.

Example [Visual Basic]

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

See Also

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