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: 13.0.131
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