1

I am running SQL Server 2012 on a server (server 1) and have set up a job to run a stored procedure which will summarize data from a series of tables and update a table on a linked server (server 2) which is also SQL Server 2012. I can successfully run the stored procedure on it's own, but when the scheduled job runs, I get the following error:

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

I suspect this is a security issue, but cannot find the settings that will let me run this.

Hannah Vernon
71k22 gold badges178 silver badges323 bronze badges
asked Mar 14, 2018 at 18:55
2
  • 1
    Check which account the SQL Server Agent Service is running under (using SQL Server Configuration Manager on the server). Commented Mar 14, 2018 at 20:14
  • And check how security is set up under Server Objects > Linked Servers > right-click 222.222.222.222 Commented Mar 14, 2018 at 21:14

2 Answers 2

0

The SQL Server 2012 builds that were released after SQL Server 2012 was released. You must apply a SQL Server 2012 hotfix to an installation of SQL Server 2012. The fix for this issue was released in Cumulative Update 1 for SQL Server 2012. For more detail please read: https://support.microsoft.com/en-in/help/2652582/fix-invalid-authorization-specification-error-message-when-you-run-the

answered Mar 15, 2018 at 7:16
-3

Include the local login "NT AUTHORITY\NETWORK SERVICE" enter image description here

answered Dec 15, 2021 at 19:26
1
  • Doing that will allow any remote service running as the Network Service account on the same domain to run anything including a DROP DATABASE command against the linked server. I would highly recommend not adding the NT AUTHORITY\Network Service to your SQL Server like this. Commented Dec 15, 2021 at 20:11

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.