You can use make dataset xml with the DataSet.getXml function. and skip the input parameter for SP.
eg
Create PROCEDURE dbo.MyInsertSP
(
@strXML varchar(1000)
)
AS
Begin
Insert into publishers
Select * from OpenXml(@intPointer,'/root/publisher',2)
With (pub_id char(4), pub_name varchar(40), city varchar(20),
state char(2),9) country varchar(20))
exec sp_xml_removedocument @intPointer
RETURN
End
Hope this makes sense.
source
share