
How to compact a password protected database with Visual C++ using ODBC
Hi! I've read a response to a news question about how to compact an Access
database using ODBC, with this code:
SQLConfigDataSource(
hWnd,
ODBC_ADD_DSN,
"Microsoft Access Driver (*.mdb)",
"COMPACT_DB=yoursource.mdb " "yourtarget.mdb\0\0"
);
I have tried it and it works ok, but when I use a password protected
database it doesn't work. Do you know how can I specify the password in the
parameters string (COMPACT_DB=...").
Anyone can help me, please?
Thanks in advance.
--
Xavi Aparisi