MS-SQL store procedure trigered problem

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

MS-SQL store procedure trigered problem

Post by juliyas »

Please help,
I have store procedure in SQL server, which use the open query.
When i run the job which triggered the store procedure by ODBC stage i get the error :"
IF9MIF_CCP_CallProc..MSSQL_SP.CheckStatusSp: DSD.BCIOpenR call to SQLExecDirect failed.
Statement was:{call Phone_Directory.dbo.Update_IVR(0)}
SQLSTATE=01000, DBMS.CODE=7300
[DataStage][SQL Client][ODBC][DataDirect][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].
SQLSTATE=37000, DBMS.CODE=7391
[DataStage][SQL Client][ODBC][DataDirect][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction."
Can somebody help me?
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Does this SP run ok from the sql editor?
ask your DBA if they can shed any light on what might generate theese error codes.
what does the SP do?
does it require special privilages?
could it be you can't run the SP if you'r already inside a transaction?

theese are the questions I can think of right now with the info you supplied so far.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
sudharsanan
Participant
Posts: 64
Joined: Fri Jul 16, 2004 7:53 am

Post by sudharsanan »

How are you running this store procedure?.. does the user has permission's to execute the procedure.. confrim this from your DBA..also give us some info on wht does that store procedure doing...
MTCHONG
Participant
Posts: 5
Joined: Tue Dec 06, 2005 1:14 pm

Re: MS-SQL store procedure trigered problem

Post by MTCHONG »

juliyas wrote:Please help,
I have store procedure in SQL server, which use the open query.
When i run the job which triggered the store procedure by ODBC stage i get the error :"
IF9MIF_CCP_CallProc..MSSQL_SP.CheckStatusSp: DSD.BCIOpenR call to SQLExecDirect failed.
Statement was:{call Phone_Directory.dbo.Update_IVR(0)}
SQLSTATE=01000, DBMS.CODE=7300
[DataStage][SQL Client][ODBC][DataDirect][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].
SQLSTATE=37000, DBMS.CODE=7391
[DataStage][SQL Client][ODBC][DataDirect][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction."
Can somebody help me?
We have (few years later) the same kind of problem with the provider OLE DB 'SQLOLEDB' . Did anybody find the solution ? We are trying to call a stored procedure on a server which is doing an openquery to an another sql server (select statement only). The stored procedure succeeds running in SQL server if no BEGIN TRANSACTION is written into it. When we add a begin transaction the error is the same one that we had in Datastage director. We tried the statement SET REMOTE_PROC_TRANSACTIONS OFF in many ways but it's still not working. Do someone know how to write several statements in the 'SQL defined ' of the object ODBC like SET blabla ; CALL my_proc; ? I have a syntax error. So do we have to modify one database parameter in order to enable distributed transactions ? Any idea ? Thanks.
Post Reply