Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Configuration Namespace / ConfigUtility Class / ValidateConnection Method
The connection string
Any exception thrown during validation
In This Topic
    ValidateConnection Method
    In This Topic
    Validates a sql connection string.
    Syntax
    public static bool ValidateConnection( 
       string connectionString,
       out string message
    )

    Parameters

    connectionString
    The connection string
    message
    Any exception thrown during validation

    Return Value

    True if a connection can be opened; false otherwise.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also