• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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 Source

TranslateSQLException(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.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS