Here is code. How/where do I determine if "connection" to database was successful?
string connectionString = @"Provider=Microsoft.Jet.O
LEDB.4.0;"
+ "Data Source=" + txtDatabaseName.Text + ";"
+ "Persist Security Info=False;"
+ "Mode=Share Deny None;";
IDbConnection dbConnection = new System.Data.OleDb.OleDbCon
nection(co
nnectionSt
ring);
IDbCommand dbCommand = new System.Data.OleDb.OleDbCom
mand();
dbCommand.Connection = dbConnection;
IDbDataAdapter dataAdapter = new System.Data.OleDb.OleDbDat
aAdapter()
;
DataSet dsOldDB = new DataSet();
Start Free Trial