Documentation for this section has not yet been entered.
If the connection to the database is closed, the DbConnection.DataSource returns whatever is contained in the DbConnection.ConnectionString for the DataSource keyword. If the connection is open and the DbConnection.ConnectionString data source keyword's value starts with "|datadirectory|", the property returns whatever is contained in the DbConnection.ConnectionString for the DataSource keyword only. If the connection to the database is open, the property returns what the native provider returns for the DBPROP_INIT_DATASOURCE, and if that is empty, the native provider's DBPROP_DATASOURCENAME is returned.