Hello all,
I wish to import some tables from an Access DB which is password protected and am encountering some problems. Maybe someone can help:
I get the following error message when I run the code below: ERROR: CLI error trying to establish connection: [Microsoft] [ODBC driver for Microsoft Access] General error The registry key 'Temporary (volatile) Ace DSN for process 0x273c Thread 0x1814 DBC 0x7f82b4 Jet 'cannot be opened.. ERROR: Error in the LIBNAME statement. ERROR: Connection Failed. See log for details.
proc import out= lib.myoutdat
datatable= "patient"
dbms=accesscs replace;
database= "mypath.\mydb";
scanmemo=yes;
usedate=no;
scantime=yes;
dbpwd='&mypassword';
run;
Your password macro variable won't resolve inside single quotes. Try double quotes:
proc import out= lib.myoutdat
datatable= "patient"
dbms=accesscs replace;
database= "mypath.\mydb";
scanmemo=yes;
usedate=no;
scantime=yes;
dbpwd="&mypassword";
run;
Your password macro variable won't resolve inside single quotes. Try double quotes:
proc import out= lib.myoutdat
datatable= "patient"
dbms=accesscs replace;
database= "mypath.\mydb";
scanmemo=yes;
usedate=no;
scantime=yes;
dbpwd="&mypassword";
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.