log4net SDK Reference |

# AdoNetAppender.ConnectionString Property

Gets or sets the database connection string that is used to connect to the database.

[Visual Basic]
Public Property ConnectionString As String
[C#]
public string ConnectionString {get; set;}

#### Property Value

The database connection string used to connect to the database.

#### Remarks

The connections string is specific to the connection type. See ConnectionType for more information.

#### Example

Connection string for MS Access via ODBC:

    "DSN=MS Access Database;UID=admin;PWD=;SystemDB=C:\data\System.mdw;SafeTransactions = 0;FIL=MS Access;DriverID = 25;DBQ=C:\data\train33.mdb"

Another connection string for MS Access via ODBC:

    "Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Work\cvs_root\log4net-1.2\access.mdb;UID=;PWD=;"

Connection string for MS Access via OLE DB:

    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\cvs_root\log4net-1.2\access.mdb;User Id=;Password=;"

#### See Also

AdoNetAppender Class | log4net.Appender Namespace