TurboDB ADO.NET Data Provider TurboDBConnection.ConnectionString |
Previous Top Next |
Indicates a textual representation of the parameters used to open a database connection.
C#
public override string ConnectionString {get; set;}
Visual Basic
Public Overrides Property ConnectionString As String
Description
The connection string can have three fields:
Name |
Description |
Typical Value |
DataSource |
File name of the database file or directory name of the database directory (see "Databases") |
C:\TurboDB\MyDb1.tdbd |
Exclusive |
Defines, whether other applications can access the same database at the same time. |
false |
ReadOnly |
Defines, whether the application can execute modification statements (INSERT, UPDATE, DELETE) over this connection. |
false |
A typical connection string looks like this: DataSource="C:\TurboDB\MyDb1.tdbd";Exclusive=True;ReadOnly=False
The values for Exclusive and ReadOnly can be set by properties as well. The DataSource is modified by the ChangeDatabase function.
Compatibility
TurboDB Managed only supports database files, the DataSource field cannot be a directory.
In TurboDB Managed, the Exclusive field has no effect, because TurboDB Managed always opens the database in exclusive mode.
See also