Returns a concatenated connection string that may include a data source name, a user ID valid on the data source, a user authentication string (password, if the data source requires one), and other information.
odbc_databaseGetConnectionString ( db_pointer As User ) As String
Argument | Type | Description |
---|---|---|
db_pointer | user | Database reference. This reference should be obtained with the previous call to odbc_databaseOpen |
Dim db As User = odbc_databaseOpen( "ODBC;DSN=PEFRESULTS") Dim connString As String = odbc_databaseGetConnectionString(db) odbc_databaseClose( db) Return connString --> "ODBC;DSN=PEFRESULTS;DBQ=C:\My Documents\TestDatabase.accdb;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;"