Gets or sets the string used to open a the connection to the database server.
The connection string that includes the parameters needed to establish the initial connection. Please note that Database must be specified. The default value is an empty string.
IDbConnection.ConnectionString
The following keywords are support by the Mimer Data Provider:
| KeyWord | Remarks |
|---|---|
| Database | The name of the database server to connect to. The database must have been defined by the Mimer Administrator. |
| User ID | The database user to connect to. The User Id is not used if Integrated Security is selected. Otherwise User Id is required. |
| Password | The password for the User ID. Ignored if Integrated Security is used. |
| Integrated Security | If set to true, the system will try to use the current Windows user to login. This type of login succeeds if there is an ident of type OS_USER with the same name as the Windows user. If keyword is not specified or set to false, User Id and Password is used to login to the database server. |
| Persist Security Info | After successful login the password information is removed from the connection string unless this keyword is set to true. |
MimerConnection connection = new MimerConnection(); // // Login as current Windows user in the database server ExampleDB // connection.ConnectionString = "Database=ExampleDB;Integrated Security=true;"; connection.Open();
MimerConnection Class | Mimer.Data.Client Namespace