BookmarkSubscribeRSS Feed
QLi
Fluorite | Level 6 QLi
Fluorite | Level 6

I am trying to create library through oledb.

 

below is the code i submitted :

LIBNAME ntz oledb
init_string="provider=NZOLEDB;
User ID=&myID ;
password=&PW;
Initial Catalog=MKTPRD;
Data Source=MKTPRD-EEE-NTZ"
schema=TRX;
run;

 

 

There was error:

35 LIBNAME ntz oledb
36 init_string="provider=NZOLEDB;
37 User ID=&myID ;
38 password=&PW;
39 XXXXXXXXXXXXXXXXXXXXXXXXXX
40 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
41 schema=TRX;
ERROR: Error trying to establish connection: Unable to Initialize: Client unable to establish connection
ERROR: Error in the LIBNAME statement.

 

Could you help me point it out where is wrong?

 

Thank you very much

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

You need to know the connection parameters.

You can test the connection outside of SAS if you want, to start with.

Many resources available to do this, for example this one: https://stackoverflow.com/questions/3910364/quick-ways-to-test-ole-db-connection-string

QLi
Fluorite | Level 6 QLi
Fluorite | Level 6

Chris, I tested it before using your way.   in our data link, provider=NZOLEDB  which is Netezza server, not among providers.

 

 

datalink.PNG

SASKiwi
PROC Star

Maybe you need to install an OLE DB provider for Netezza?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

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
  • 4 replies
  • 584 views
  • 0 likes
  • 3 in conversation