Stored Procedure Using Remote Connection gives error in Agent Job
From: Mike Dale (MikeDale_at_discussions.microsoft.com)
Date: 07/22/04
- Next message: Earl: "scripts enough?"
- Previous message: Lontae Jones: "Float Value"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Jul 2004 15:51:03 -0700
Hey all,
I created a stored procedure that we use for balancing some datawarehouse data to a particular legacy system. It uses a distributed query through a remote server to a old Oracle RDB database. (The Linked server uses ODBC)
Anyways, the procedure works perfectly fine if I run it in query analyzer. It also works fine if I run it in query analyzer as the <DOMAIN>\<Account> account that the SQL Server Service runs under.
However, I want to use this query in a SQL Server Agent job step to control whether or not an incremental roll-up procedure kicks off each day or not. So, I created a TSQL Step in the Agent job, using the following syntax:
exec DWLottery.dbo.DRAW_INCR_RUN_CHECK
When I test this, the step fails and I get the following error:
Msg 7391, Sev 16: The operation could not be performed because the OLE DB provider 'MSDASQL' was unable to begin a distributed transaction. [SQLSTATE 42000]
Msg 7312, Sev 16: Driver not capable.] [SQLSTATE 01000]
Msg 7300, Sev 16: OLE DB error trace [OLE/DB Provider 'MSDASQL' ITransactionJoin::JoinTransaction returned 0x8004d00a]. [SQLSTATE 01000]
Any ideas as to how I can prevent this error, and use this procedure in a SQL Agent job?
- Next message: Earl: "scripts enough?"
- Previous message: Lontae Jones: "Float Value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|