Hi,
I have a linked server to a AS/400 mainframe. SELECT queries run fine and are fast. But the update runs forever and I can't even kill the process.
I tried the following:
UPDATE ric.richelie.prjdpsf.spconvp
SET cvwhsi = 'toto'
WHERE cvpce# = 'RIC-0005337432'
and:
UPDATE OPENQUERY (RIC, 'SELECT CVWHSI FROM SPCONVP WHERE CVPCE# = ''RIC-0005337432''')
SET CVWHSI = 'test0'
it do the same thing. The field is updated but the query never stop executing. I tried using "BEGIN TRANS" and "COMMIT" but it returns an error saying the provider does not support transactions.
For a test, I created an ODBC, with the same parameters as the linked server, and interfaced that ODBC from a VB.NET app. When I run an UPDATE in a OdbcCommand, it runs perfectly and is lightning fast. But I really need to be able to do the same from SQL, as I don't want to use dynamic SQL but use StoredProc instead.
thanks for your time and help!
I have a linked server to a AS/400 mainframe. SELECT queries run fine and are fast. But the update runs forever and I can't even kill the process.
I tried the following:
UPDATE ric.richelie.prjdpsf.spconvp
SET cvwhsi = 'toto'
WHERE cvpce# = 'RIC-0005337432'
and:
UPDATE OPENQUERY (RIC, 'SELECT CVWHSI FROM SPCONVP WHERE CVPCE# = ''RIC-0005337432''')
SET CVWHSI = 'test0'
it do the same thing. The field is updated but the query never stop executing. I tried using "BEGIN TRANS" and "COMMIT" but it returns an error saying the provider does not support transactions.
For a test, I created an ODBC, with the same parameters as the linked server, and interfaced that ODBC from a VB.NET app. When I run an UPDATE in a OdbcCommand, it runs perfectly and is lightning fast. But I really need to be able to do the same from SQL, as I don't want to use dynamic SQL but use StoredProc instead.
thanks for your time and help!