BookmarkSubscribeRSS Feed
Deepika1
Calcite | Level 5

Hi,

 

I tried to connect sql server from SAS EG(Unix)  using the below code:

 

libname sql1 sqlsvr user="XXXXXXX" password="XXXXXXX" datasrc=XXXXXX;

or


libname sql1 odbc user="XXXXXXX" password="XXXXXXX" datasrc=XXXXXX;

 

I got the below error:

CLI error trying to establish connection: [SAS][ODBC SQL Server Wire Protocol driver]A value was not specified for the 
Domain connection option.  A domain name or workgroup must be specified when using Domain NTLM.

 

Could you please direct me the right ways to resolve the issue?

1 REPLY 1
vemurikarthik
Calcite | Level 5

Hi,

 

few things to try:

 

1) make sure your user= field is in format -- > user="Domain\userid"

2) include schema= option

3) if you are using a windows account (I believe you are) to authenticate against sql server, you might need to change a few things http://support.sas.com/kb/48/348.html

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 2137 views
  • 0 likes
  • 2 in conversation