Click or drag to resize
SqlInstallationHelperGetConnectionString Method
Returns connection string for the given parameters.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax
C#
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: String
See Also