哈希表,命令对象 [英] HashTable, Command Object
本文介绍了哈希表,命令对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我的问题是我在哈希表对象中收集用户详细信息,然后将其作为参数传递给执行存储过程以保存用户详细信息的SQLCommand对象.
谁能告诉我如何将哈希表对象作为参数传递给Command对象?
在此先感谢
Hello Friends,
My issue is I''m collecting user details in hash-table object and then I want to pass it as parameter to SQLCommand object which executes stored procedure to save user details.
Can anyone tell how to pass hash-table object as parameter to Command object?
Thanks in advance
推荐答案
您不能将Hashtable传递给Sp,
但是有办法将多值传递给Sp,
看看,
http://www.simple-talk.com/sql /t-sql-programming/faking-arrays-in-transact-sql/ [
You can Not pass Hashtable to Sp,
But there is way to pass multi-value to Sp,
Have a Look,
http://www.simple-talk.com/sql/t-sql-programming/faking-arrays-in-transact-sql/[^]
这篇关于哈希表,命令对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文