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 Index » WebSphere Message Broker (ACE) Support » Unsupported type Error when selecting xml field from table

Post new topic  Reply to topic
 Unsupported type Error when selecting xml field from table « View previous topic :: View next topic » 
Author Message
new2MB
PostPosted: Mon Jun 09, 2014 10:30 pm    Post subject: Unsupported type Error when selecting xml field from table Reply with quote

Novice

Joined: 04 Jun 2014
Posts: 11

please suggest how to select from a table with a column defined as xml.
when using a normal select getting Unsupported type error.

but works with passthru CAST (CAST(xmlData AS varchar(max)) AS text)

i want to avoid using passthru due to its reduced performance.
please suggest an alternative for this
Back to top
View user's profile Send private message
Simbu
PostPosted: Mon Jun 09, 2014 11:42 pm    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

Query the XML column without any cast and see how the data looks like.
The below link tells what ESQL datatype for what Database datatype.

http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ak05730_.htm?lang=en
Back to top
View user's profile Send private message
new2MB
PostPosted: Tue Jun 10, 2014 2:30 am    Post subject: Reply with quote

Novice

Joined: 04 Jun 2014
Posts: 11

Simbu wrote:
Query the XML column without any cast and see how the data looks like.


the query does not execute, it throws an excetion when executing the query
Text:CHARACTER:Unsupported SQL type

Quote:
The below link tells what ESQL datatype for what Database datatype.

http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ak05730_.htm?lang=en


the link mentioned does not give a suitable esql data type for Sql Server xml
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 10, 2014 5:15 am    Post subject: Re: Unsupported type Error when selecting xml field from tab Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

new2MB wrote:
please suggest how to select from a table with a column defined as xml.
when using a normal select getting Unsupported type error.

but works with passthru CAST (CAST(xmlData AS varchar(max)) AS text)

i want to avoid using passthru due to its reduced performance.
please suggest an alternative for this


Have you thought about calling a procedure on the SQL Server and doing the data type transformation within the procedure?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unsupported type Error when selecting xml field from table
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.