Link to home
Start Free TrialLog in
Avatar of r_pat72
r_pat72

asked on

SQL Server 2008/Link server question

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
Avatar of Ryan McCauley
Ryan McCauley
Flag of United States of America image

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.
Avatar of r_pat72
r_pat72

ASKER

how to set agent account that will run under my credential?
ASKER CERTIFIED SOLUTION
Avatar of Ryan McCauley
Ryan McCauley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of r_pat72

ASKER

thanks.