Solved

SQL Server 2008/Link server question

Posted on 2011-03-25
4
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

749 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