Groups | Blog | Home
all groups > sql server connect > december 2003 >

sql server connect : SQL Job Failure


Adam Campbell
12/11/2003 1:38:04 PM
I have a job that simply deletes data from a few tables
then inserts data from a linked server into those tables.
I run the code from the job in query analyzer and it works
fine. However, when the job runs it thows this error
everytime.

Msg 7399, Sev 16: OLE DB provider 'SQLOLEDB' reported an
error. [SQLSTATE 42000]
Msg 7312, Sev 16: [SQLSTATE 01000]
Msg 7300, Sev 16: OLE DB error trace [OLE/DB
Provider 'SQLOLEDB' IDBInitialize::Initialize returned
0x80004005: ]. [SQLSTATE 01000]

I am using SQL Server 2000 with Windows 2000.

Any help would be greatly appreciated.

Thank you,
Allan Mitchell
12/11/2003 10:25:38 PM
This error code 0x80004005 tells me that it more than likely has to do with
permissions. Are you using Windows Authentication for the Linked Server? A
job will run as

1. The SQL Server Agent account if the owner of the job is in the sysadmin
role
2. The Proxy account if not.



--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

kevmc NO[at]SPAM online.microsoft.com
12/12/2003 8:46:32 PM
Could be a timeout issue. See:

314530 PRB: Error Message 7399: "Timeout Expired" Occurs with Linked Server
http://support.microsoft.com/?id=314530

Thanks,

Kevin McDonnell
Microsoft Corporation

This posting is provided AS IS with no warranties, and confers no rights.


AddThis Social Bookmark Button