function to translate sql exceptions to readable messages.
It also captures cases where sql server is not available and guards against
database connection details being leaked
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string TranslateSQLException( SqlException exc ) |
Visual Basic |
---|
Public Shared Function TranslateSQLException ( exc As SqlException ) As String |
Parameters
- exc
- Type: System.Data.SqlClient..::..SqlException
paramexcM:DotNetNuke.Common.Utilities.SqlUtils.TranslateSQLException(System.Data.SqlClient.SqlException)