Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
One of my stored procedures is failing probably due to some security issue.
All it does is, get some data from a remote linked server and insert it in the local server.
Works fine in SSMS but if I try to schedule it using SQL Server Agent it fails.. all the time.
The SQL server Agent uses a local admin account and connects to the linked server using a SQL server login.
What do I need to fix to get this working?
Posted

1 solution

I believe the reason why this works in SSMS and not with the agent is because in SSMS you are using a Windows account, which has login priviledges on both servers. The local admin on the local machine probably does not have access to the remote machine. I've tried getting around that but what I keep coming back to is using Windows domain accounts to access the remote data.
 
Share this answer
 
Comments
SalCon 14-Jun-12 13:29pm    
Unfortunately I can only connect to the remote server using the SQL login and not the Windows login. :( . You are right that the local admin doenst have access to the remote server.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900