Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduling a stored procedure across sql servers

Status
Not open for further replies.

Grant007

Technical User
Nov 12, 2002
60
GB
Hi Guys,

I have a scheduled job which is run from one sql server but sucks information in from another sql server. i have linked the servers and if i execute the stored procedure manually it works fine... the moment i put it into a schedule to try to get it working automatically it fails miserably..

any suggestions would be greatfully received...

here is the job history message i get..


Executed as user: X. OLE DB provider 'SQLOLEDB' reported an error. [SQLSTATE 42000] (Error 7399) [SQLSTATE 01000] (Error 7312) OLE DB error trace [OLE/DB Provider 'SQLOLEDB' IDBInitialize::Initialize returned 0x80004005: ]. [SQLSTATE 01000] (Error 7300). The step failed.
 
It's probably got to do with the security settings on the second tab of the linked server. Make sure that the account that the SQL Server runs the job under is mapped to an account on the other server.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top