 | MiscGenerateConnectionString Method |
Create connection string from sql parameters
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static string GenerateConnectionString(
string sqlserver,
string sqldatabase,
string sqlport,
string sqluser,
string sqlpassword
)
Public Shared Function GenerateConnectionString (
sqlserver As String,
sqldatabase As String,
sqlport As String,
sqluser As String,
sqlpassword As String
) As String
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:
StringGenerated connection string
See Also