SqlInstallationHelperGetConnectionString Method |
Returns connection string for the given parameters.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax public static string GetConnectionString(
bool winAuth,
string serverName,
string database,
string userName,
string pass
)
Parameters
- winAuth
- Type: SystemBoolean
Whether to use windows authentication - serverName
- Type: SystemString
Server - database
- Type: SystemString
Name of the database - userName
- Type: SystemString
SQL user name - pass
- Type: SystemString
SQL password
Return Value
Type:
StringSee Also