Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

MSSqlConnectionProvider.GetConnectionString Method

Name Parameters Description
GetConnectionString(String, Int32, String, String, String) static server, port, userId, password, database Returns a connection string used to open a specified MS SQL database using provided login credentials.
GetConnectionString(String, Int32, String) static server, port, database Returns a connection string used to open a specified MS SQL database using provided login credentials.
GetConnectionString(String, String, String, String) static server, userId, password, database Returns a connection string used to open a specified MS SQL database using provided login credentials.
GetConnectionString(String, String) static server, database Returns a connection string used to open a specified MS SQL database using Windows Integrated Security.