klewis10367
MIS
Is there a way to dts an xml file into sql2000? I do not see it as a source option.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CREATE Procedure TesterXMLInput
@XML Text
As
SET NOCOUNT ON
Declare @iDoc Integer
Exec sp_xml_preparedocument @iDoc OUTPUT, @XML
-- uncomment the next 2 lines to insert into table
--Insert
--Into tblA(fldA, fldB, fldC)
Select fldA, fldB, fldC
From OpenXML(@iDoc, '//root/data', 1)
With (
fldA Int,
fldB Varchar(10),
fldC datetime
)
execute TesterXMLInput '<root><data fldA = "65" fldB = "B" fldC = "20070905"/></root>'