Solved

SQL Server 2008/Link server question

Posted on 2011-03-25
4
187 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
Comment Utility
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
Comment Utility
how to set agent account that will run under my credential?
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
Comment Utility
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
Comment Utility
thanks.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now