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

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2273 views
  • 0 likes
  • 2 in conversation