Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 7th, 2009, 03:57 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Question Linked Server calling proc on db2/400

I am using Microsoft OLE DB for DB2. Now when I do a query like this:


Code:
 
SELECT *FROM OPENQUERY(AS400SRV_MSOLEDB, 'Select * from rjadevlib.f55125')

Things are working fine.

When I use a linked server and call a proc on db2/400 like this:

Code:
 
declare @JobNumber1 char(12)
set @JobNumber1 = ' 3505040'
 
CREATE TABLE #JDE_EqmTable
( jde_cost_code nvarchar(15) unique,
jde_sum_hrs decimal(10,2),
jde_uom char(2)
)
 
insert into #JDE_EqmTable
Exec ('Call QGPL.get_eqmqty(?)', @JobNumber1) AT AS400SRV_MSOLEDB
drop table #JDE_EqmTable
I get error:
Msg 7390, Level 16, State 2, Line 73
The requested operation could not be performed because OLE DB provider "DB2OLEDB" for linked server "AS400SRV_MSOLEDB" does not support the required transaction interface.

If I remove the "Insert into...." it works fine.

Last edited by snufse; April 7th, 2009 at 04:29 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Stored Proc with OUT params nkrust ASP.NET 2.0 Professional 2 April 19th, 2007 12:31 AM
MS Access .mdb calling SQL server 2000 stored proc fazzou Access 6 September 8th, 2006 11:32 AM
Access DB2 on AS/400 using IBM OLE DB Provider KiwiMark SQL Server 2005 2 February 16th, 2006 07:40 PM
VB calling DB2 stored procedure sangsri VB How-To 1 July 13th, 2005 08:55 AM
Calling AS/400 Stored Procedures from VB.NET prasanthknair ADO.NET 0 January 19th, 2005 06:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.