|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Update Statement in esql |
« View previous topic :: View next topic » |
Author |
Message
|
varun6 |
Posted: Sat Sep 23, 2017 5:24 am Post subject: Update Statement in esql |
|
|
Newbie
Joined: 25 Oct 2012 Posts: 9
|
varun6 wrote: |
I'm seeing below issue when trying to update data into a sql server database table
Text:CHARACTER:[IBM][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]UPDATE failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.
I'm using below esql for update
PASSTHRU('UPDATE EOPS.EOPS.Tbl_Online_Remittance SET Processor_Confirmation_Number=2672507199033421866 where Remittance_ID=4');
AND ALSO I TRIED
PASSTHRU ('UPDATE INWARD_TRN SET INTRN.STATUS.LKP.ID=? WHERE INTRN.INW_TRN_ID=?',2672507199033421876,2);
Please help me |
|
|
Back to top |
|
 |
mqjeff |
Posted: Mon Sep 25, 2017 4:27 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The error you have shown is an error returned by the SQLServer itself.
You should consult your DBA on that error and your statement.
And then you should use usertrace to see what your ESQL statements are producing. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Android 23 |
Posted: Mon Sep 25, 2017 8:50 am Post subject: Re: Update Statement in esql |
|
|
Apprentice
Joined: 27 Mar 2017 Posts: 38
|
varun6 wrote: |
varun6 wrote: |
I'm seeing below issue when trying to update data into a sql server database table
Text:CHARACTER:[IBM][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]UPDATE failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.
I'm using below esql for update
PASSTHRU('UPDATE EOPS.EOPS.Tbl_Online_Remittance SET Processor_Confirmation_Number=2672507199033421866 where Remittance_ID=4');
AND ALSO I TRIED
PASSTHRU ('UPDATE INWARD_TRN SET INTRN.STATUS.LKP.ID=? WHERE INTRN.INW_TRN_ID=?',2672507199033421876,2);
Please help me |
|
Check whether fields which you declared is string type or not.
Quote: |
Processor_Confirmation_Number, Remittance_ID, INTRN.INW_TRN_ID |
this fields are string or integer type.
Go and verify this first.
Thanks & Regards,
Android 23 |
|
Back to top |
|
 |
varun6 |
Posted: Mon Oct 02, 2017 11:31 am Post subject: |
|
|
Newbie
Joined: 25 Oct 2012 Posts: 9
|
Issue got resolved by sending PASSTHRU('SET QUOTED_IDENTIFIER ON') before update statement. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|