BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi friends,
i am using SAS EG and submitting code on a remote SAS server.
I am trying to connect MS SQL Server through proc sql pass through query using my windows authentication.
here is my code.

connect to oledb as xyz (init_string="Provider=SQLOLEDB.1;
Integrated Security=SSPI;
Persist Security Info=True;
Initial Catalog=DB_TEST;
Data Source=SQLSERVER"
);

but some thing is wrong, i get this error.

Error trying to establish connection: Unable to Initialize: Login failed for user ''. The user is not associated with a trusted SQL Server connection.

I checked on login into sql server , I am authenticated User.
I think the query is not able to send my username to sql server.

Please help..

thanks and regards
Avi
2 REPLIES 2
LinusH
Tourmaline | Level 20
This is a typically SAS Tech support issue.
Information missing in your post: your environment details, such as server(s), metadata setup etc.

/Linus
Data never sleeps
jklein271
Calcite | Level 5
Avi:

Did you ever have any luck with this issue?

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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