Skip to main content
.NET Framework 4.6.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 Microsoft SQL database using provided login credentials.
GetConnectionString(String, Int32, String) static server, port, database Returns a connection string used to open a specified Microsoft 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 Microsoft SQL database using provided login credentials.
GetConnectionString(String, String) static server, database Returns a connection string used to open a specified Microsoft SQL database using Windows Integrated Security.