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

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 2856 views
  • 0 likes
  • 2 in conversation