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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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