Solved

SQL Server 2008/Link server question

Posted on 2011-03-25
4
212 Views
Last Modified: 2012-05-11
Hi,

I am executing a stored proc which runs fine in sql server management studio which uses link server. But when I put that
stored proc inside a job & runs that jobs, it fails.

Here is the security setting for Link server

I have added my windows login to (Local server login to remote server login mappings:)
selected the radio button (Be made using the login's current security context)

Please help.

Thanks
0
Comment
Question by:r_pat72
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 35220695
Does the account that runs sql agent jobs have rights to get that data from the remote server? When you run it in sql management studio, it's running as you, but as a scheduled job, it's running as the agent account, which may not have the same rights.
0
 

Author Comment

by:r_pat72
ID: 35220972
how to set agent account that will run under my credential?
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 35232983
The easiest way to do it is by using the "SQL Server Configuration Manager" in your start menu that installed with SQL Server - there are about a dozen places that permissions need to change, and that app will handle them all for you instead of doing them by hand.

If you want to do it by hand, here's Microsoft's official walk-through:

http://support.microsoft.com/kb/283811

0
 

Author Closing Comment

by:r_pat72
ID: 35234616
thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question