ConnectionHelperGetConnectionString Method (SQLServerAuthenticationModeEnum, String, String, String, String, Int32, Boolean, String, Boolean) |
Generates the connection string with the specified parameters.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax public static string GetConnectionString(
SQLServerAuthenticationModeEnum authenticationMode,
string serverName,
string databaseName,
string userName,
string password,
int timeout,
bool htmlEncoded,
string language = "English",
bool azure = false
)
Parameters
- authenticationMode
- Type: CMS.DataEngineSQLServerAuthenticationModeEnum
Authentication type - serverName
- Type: SystemString
Server name - databaseName
- Type: SystemString
Database name - userName
- Type: SystemString
User name - password
- Type: SystemString
User password - timeout
- Type: SystemInt32
Connection timeout - htmlEncoded
- Type: SystemBoolean
Html encoded to be able to display it properly on the page - language (Optional)
- Type: SystemString
Connection language - azure (Optional)
- Type: SystemBoolean
Specifies whether connection string is for Microsoft Azure
Return Value
Type:
StringSee Also