Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
i have created a linked server name(xyz) and i am using it in a stored procedure.it is working fine,but when i add this stored procedure under the maintenance plan under management of sql server.When i try to execute this plan i get following error in sql server agent log.
The task was initiated by user sa,executed as ituser.and it was failed.
I am not able to figure the exact error,i guess issue is when sql server agent tries to use linked server,because other plan is executing well.
Posted
Comments
ZurdoDev 7-May-12 19:47pm    
Does the user the job is executing as have permissions to the linked server?

1 solution

in the step properties of sql server agent job,i had selected ssis package where as it should have been t-sql statement.solved ah!
 
Share this answer
 

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