Class SqlUtils
The SqlUtils class provides Shared/Static methods for working with SQL Server related code.
Inheritance
System.Object
SqlUtils
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public class SqlUtils : object
Methods
| Improve this Doc View SourceTranslateSQLException(SqlException)
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.
Declaration
public static string TranslateSQLException(SqlException exc)
Parameters
Type | Name | Description |
---|---|---|
SqlException | exc | The exception. |
Returns
Type | Description |
---|---|
System.String | An HTML string with exception details. |