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 » How to store XML msg into SQLServer 'ntext' datatype column?

Post new topic  Reply to topic
 How to store XML msg into SQLServer 'ntext' datatype column? « View previous topic :: View next topic » 
Author Message
dev
PostPosted: Thu Apr 29, 2004 8:20 am    Post subject: How to store XML msg into SQLServer 'ntext' datatype column? Reply with quote

Apprentice

Joined: 11 Oct 2001
Posts: 30

I have a DATABASE NODE, wanting to store complete XML message into SQL servers column names MSG (data type is ntext) under table TEST_MSG.

INSERT INTO Database.dbo.TEST_MSG (MSGType, MSG)
VALUES
(
'TEST',
Body
);
it sends NULL value of 'Body', I want to store it as 'UNICODE TEXT' into ntext type column.

Am I missing anything here? Do I refer complete XML msg as Body, is it correct?
Back to top
View user's profile Send private message
klabran
PostPosted: Thu Apr 29, 2004 8:31 am    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

http://www.mqseries.net/phpBB2/viewtopic.php?t=15075

Although I am storing it as ASCII Text not unicode.... that's what the CCSID 437 is. unicode is 1200.

Back to top
View user's profile Send private message Visit poster's website
dev
PostPosted: Thu Apr 29, 2004 1:27 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Oct 2001
Posts: 30

Thanks! It worked!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to store XML msg into SQLServer 'ntext' datatype column?
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.