DATA Step, Macro, Functions and more

connect to access

Reply
SAS Employee
Posts: 105

connect to access

Hi',
does anybody knows how to connect from sas to access?
i will be great to have some examples....

thenks in advance,
Super User
Posts: 5,426

Re: connect to access

If you mean MS Access, you can use the tools in SAS/ACCESS to PC File Formats. See on-line doc for examples.

/Linus
Data never sleeps
SAS Employee
Posts: 105

Re: connect to access

o.k, thanks
Occasional Contributor
Posts: 12

Re: connect to access

I think there is another way using a libname to a odbc

libname bbdd_aaa odbc dsn=odbc_access_sas user=user password=password;

This odbc is pointing to your MS Access database.

Hope it helps...
SAS Employee
Posts: 105

Re: connect to access

My problem is that
I want to access data from MS-Access and from XLS files using the Acceess to ODBC module.(I don’t have the tool SAS/ACCESS to PC File Formats)
We have SAS installed on Itanium 64 bit.
The data is saved on other servers (in Office 2003 ).
Is there an ODBC driver for the 64bit machine that will allow us to connect to those sources?
Someone suggested we can use a system-dsn on a "WOW" 32bit odbc driver and we managed to do so
But how can we tell SAS to go there as DATASRC in the ODBC Libname definition And not to the ODBC 64 bit
Thanks!
Super User
Posts: 5,426

Re: connect to access

I assume that you are using SAS on Windows.
I can't see that this should be different than using 32-bit windows. You will need a 64-bit ODBC driver (which you will get from Microsoft for Excel). And if your Excel-files is located in a path that can be reached from your server there should be no obstacles.

If you have all this, and if it does not work, I suggest that open a track on SAS support.

/Linus
Data never sleeps
Ask a Question
Discussion stats
  • 5 replies
  • 203 views
  • 0 likes
  • 3 in conversation