How can I open a password protected (encrypted) access Database with CDatabase Object.
-
I assume the problem is with the password you don't have and not with actually opening the CDatabase Object ? :~
Watched code never compiles.
-
I assume the problem is with the password you don't have and not with actually opening the CDatabase Object ? :~
Watched code never compiles.
I mean what connection string should I use? for example for opening a ordinary access file I Use
CDatabase m_db;
m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb");so if my "a.mdb" file is password protected and the password is "123" what should i do?
-
I mean what connection string should I use? for example for opening a ordinary access file I Use
CDatabase m_db;
m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb");so if my "a.mdb" file is password protected and the password is "123" what should i do?
Amir_m wrote:
so if my "a.mdb" file is password protected and the password is "123" what should i do?
Have you tried:
m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb;Pwd=123");
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Amir_m wrote:
so if my "a.mdb" file is password protected and the password is "123" what should i do?
Have you tried:
m_db.Open(NULL,false,false,L"ODBC;DRIVER={MICROSOFT ACCESS DRIVER (*.mdb)};DSN='';DBQ=C:\\a.mdb;Pwd=123");
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius