Click or drag to resize
MiscGenerateConnectionString Method
Create connection string from sql parameters

Namespace: ToolBoox
Assembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static string GenerateConnectionString(
	string sqlserver,
	string sqldatabase,
	string sqlport,
	string sqluser,
	string sqlpassword
)

Parameters

sqlserver
Type: SystemString
Sql server address
sqldatabase
Type: SystemString
Sql database name
sqlport
Type: SystemString
Sql port (in string format as "25", "3306", etc)
sqluser
Type: SystemString
Sql username
sqlpassword
Type: SystemString
Sql password (not crypted)

Return Value

Type: String
Generated connection string
See Also