Create a table with a untype XML column, Insert
into an untyped XML data type column - March 09, 2009 at 11:00
AM by Amit Satpute
Create a table with a untype XML column, Insert into an
untyped XML data type column
-
Create a table with a untype XML column
CREATE TABLE X
{
[XID] [int] NOT NULL,
[XINFO] [xml] NOT NULL
} ON [PRIMARY]
GO
-
Insert into an untyped XML data type column
DECLARE @xmlvar varchar[100]
SET @xmlvar =
'<NODETAG>
<A>abc</A>
<B>xyz</B>
</NODETAG>'
INSERT INTO NODETAG (XID,XINFO) values (1, @xmlvar)
GO.
|