Posted: Thu Apr 29, 2004 8:20 am Post subject: How to store XML msg into SQLServer 'ntext' datatype column?
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?
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