问:将数据集作为参数发送 [英] Q: send dataset as a parameter

查看:73
本文介绍了问:将数据集作为参数发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我可以将数据集作为参数发送到存储过程并将数据导入存储过程中的
a表吗?

谢谢,

吉姆。

Hello,
Can I send a dataset as a parameter into stored procedure and import data to
a table in the stored procedure?
Thanks,
Jim.

推荐答案

我不认为存储过程。会接受一个DataSet,因为你的数据库上运行的SP是
,数据库不知道DataSet是什么。

JIM.H. <季** @ discussions.microsoft.com>在留言中写道

news:00 ********************************** @ microsof t.com ...
I don''t think a stored proc. would accept a DataSet because the SP is
running on your DB and the DB doesn''t know what a DataSet is.
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
您好,
我可以将数据集作为参数发送到存储过程并将数据导入到存储过程中的表中吗?
谢谢,
Jim。
Hello,
Can I send a dataset as a parameter into stored procedure and import data
to
a table in the stored procedure?
Thanks,
Jim.



如果你坚持,你可以在你存储的
$ b中有一个文本参数$ b程序。您可以将xml作为文本传递,并在SP中使用OPENXML将文本解释为xml。此时,您可以进行xpath查询等。

If you insist, you could have a text parameter in your stored
procedure. You could pass the xml as text, and in the SP use OPENXML to
intepret the text as xml. At that point, you can do xpath queries, etc.


您绝对可以传递文本(以您喜欢的任何形式传递:纯文本,HTML,

xml等)。但是,如果您将XML作为参数传递给SP,那么您可以在同一条船上找到

,就像您使用XML处理

一样传递DataSet。 DB会知道XPath是什么吗?


你能在数据库上进行XPath查询吗?

" Wilco Bauwer" <无线**** @ gmail.com>在消息中写道

news:11 ********************* @ f14g2000cwb.googlegro ups.com ...
You can absolutely pass text (in whatever form you like: plain text, html,
xml, etc.). But if you pass XML as a parameter to a SP, then you find
yourself in the same boat as if you passed a DataSet in terms of dealing
with the XML. Will the DB know what XPath is?

Can you do XPath queries on a DB?
"Wilco Bauwer" <wi****@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
如果你坚持,你可以在你存储的
程序中有一个文本参数。您可以将xml作为文本传递,并在SP中使用OPENXML将文本解释为xml。此时,您可以执行xpath查询等。
If you insist, you could have a text parameter in your stored
procedure. You could pass the xml as text, and in the SP use OPENXML to
intepret the text as xml. At that point, you can do xpath queries, etc.



这篇关于问:将数据集作为参数发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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