存储过程中的Xml [英] Xml in Stored procedure

查看:78
本文介绍了存储过程中的Xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的存储过程有问题.

我已经将两种xml格式传递给我的存储过程,并且我想从xml1中获取item1,item2和从xml2中获取itemA,实际上是将xml1插入到table1中,而将xml2插入到Update table2中,而xml2与table1间接相关.
我不知道该怎么写?.

我的程序是Windows应用程序,使用C#

请帮助我
坦克很多
David

I have problem with my stored-procedure.

I''ve passed two xml format to my stored-procedure and I want to fetch item1,item2 from xml1 and itemA from xml2 in fact xml1 for insert to table1 and xml2 for Update table2 that has indirectly relation with table1.

I don''t know how I can write it?.

My program is windows application Using C#

please help me
tanks a lot
David

推荐答案

通过以下链接解析XML:
For parsing the XML go though this link: http://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/[^]


这篇关于存储过程中的Xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆