Calling a Stored Procedure with XML Datatype

前端 未结 9 1235
旧巷少年郎
旧巷少年郎 2021-01-05 07:06

I am simply trying to call a store procedure (SQL Server 2008) using C# and passing XMLDocument to a store procedure parameter that takes a SqlDbType.Xml data type. I am ge

9条回答
  •  难免孤独
    2021-01-05 07:49

    Other way to do it if you don't mind loosing the xml declaration (version and encoding) is just:

    XML.DocumentElement.OuterXml 'where XML is a XMLDocument
    

提交回复
热议问题