MSSqlConnectionProvider.GetConnectionString(String, Int32, String) Method
Returns a connection string used to open a specified Microsoft SQL database using provided login credentials.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
server | String | A string that specifies the SQL server’s name. |
port | Int32 | An integer that specifies the server’s port number. |
database | String | A string that specifies the database name. |
#Returns
Type | Description |
---|---|
String | A connection string. |
#Remarks
You can use this method’s return value to initialize a Session’s connection string (for instance, via the Session.ConnectionString or XpoDefault.ConnectionString property).
Note
The Get