question

marwaor avatar image
marwaor asked

Can i creat job with linked server?

after making the linked server the job give me an error on executing store procedure

as shown msg below:


Executed as user: NT SERVICE\SQLSERVERAGENT. The OLE DB provider "MSOLEDBSQL" for linked server "INFORTEST130" reported an error. Authentication failed. [SQLSTATE 42000] (Error 7399) Cannot initialize the data source object of OLE DB provider "MSOLEDBSQL" for linked server "INFORTEST130". [SQLSTATE 42000] (Error 7303) OLE DB provider "MSOLEDBSQL" for linked server "INFORTEST130" returned message "Invalid authorization specification". [SQLSTATE 01000] (Error 7412). The step failed.


job failure
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Steve Jones - Editor avatar image
Steve Jones - Editor answered

Looks like security. An authentication failure. You should check that you can execute the query in the job through the linked server.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.