BookmarkSubscribeRSS Feed
Abcd12233
Calcite | Level 5

Hi,

I am trying to connect to a Microsft SQL Server in SAS EG 5.1. I can connect to this server using File->Open->OLEDB->Microsoft OLEDB Provider for SQL Server wizard, but it takes too long and I would like to connect using a libname statement.

Thanks so much in advance.

 

My code is:

libname mydblib oledb

datasource=sqlservername provider=sqloledb properties=('initial catalog'=db);

 

Running this code, I get the following error message in the log:

ERROR: The OLEDB engine cannot be found.

ERROR: Error in the LIBNAME statement.

 

6 REPLIES 6
Damo
SAS Employee

Hi @Abcd12233

 

It seems that the SAS/ACCESS Interface to OLEDB module is not licensed, not installed or both.

If you check your license, does it list the module ?

proc setinit; run;

If you check with SAS Foundation products are installed, does it list the module ?

proc product_status; run;

Hope that helps.


Cheers,
Damo

Abcd12233
Calcite | Level 5

Hi Damo,

 

Thank you, this seems to be the problem. I don't see SAS/ACCESS Interface to OLE DB listed. Can you suggest any other ways I could use?

 

Thank you!

SASKiwi
PROC Star

If you have SAS/ACCESS to SQL Server or SAS/ACCESS to ODBC then either of these would also work.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

How do you believe using a libname will be any quicker than using the gui?  It seems to you have a connection issue to the database, speak to your database admin/IT group to get it fixed.

Damo
SAS Employee

It's not using the same technology, that's my understanding.

 

When using File => Open => OLEDB, this is the message we get from EG (version 7.1 in my case)

 

OLEDB.PNG

 

My apologies if I say something silly (again)

 

Cheers,
Damo

 

 

LinusH
Tourmaline | Level 20
If you want something that is quicker, and fairly easy to use, you need to licence SAS/ACCESS to either OLEDB, ODBC or SQL Server.
Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 4421 views
  • 0 likes
  • 5 in conversation