Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Helper that returns all the error numbers in a string for tracing purposes It's not super efficient but should only be called in case SQL is having issues which *should* be rare.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Protected Function GetSqlErrorNumberAsString ( _
ex As SqlException _
) As String
protected string GetSqlErrorNumberAsString(
SqlException ex
)
protected:
String^ GetSqlErrorNumberAsString(
SqlException^ ex
)
member GetSqlErrorNumberAsString :
ex:SqlException -> string
protected function GetSqlErrorNumberAsString(
ex : SqlException
) : String
Parameters
- ex
Type: System.Data.SqlClient.SqlException
Return Value
Type: System.String
Returns String.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.