System::String^ connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Astute Database\db_retailpro.accdb;Persist Security Info=False;"; System::Data::OleDb::OleDbConnection^ connection = gcnew System::Data::OleDb::OleDbConnection(connectionString); try { connection->Open(); Console::WriteLine("DataSource: {0} \nDatabase: {1}", connection->DataSource, connection->Database); } catch (Exception^ ex) { Console::WriteLine(ex->Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)