ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker SupportUpdate Statement in esql

Post new topicReply to topic
Update Statement in esql View previous topic :: View next topic
Author Message
varun6
PostPosted: Sat Sep 23, 2017 5:24 am Post subject: Update Statement in esql Reply with quote

Newbie

Joined: 25 Oct 2012
Posts: 7

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
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 25, 2017 4:27 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17446

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.
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
Android 23
PostPosted: Mon Sep 25, 2017 8:50 am Post subject: Re: Update Statement in esql Reply with quote

Apprentice

Joined: 27 Mar 2017
Posts: 35

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
View user's profile Send private message
varun6
PostPosted: Mon Oct 02, 2017 11:31 am Post subject: Reply with quote

Newbie

Joined: 25 Oct 2012
Posts: 7

Issue got resolved by sending PASSTHRU('SET QUOTED_IDENTIFIER ON') before update statement.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportUpdate Statement in esql
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.