SQL的存储过程怎么在Visual studio 中用啊

存储过程名showDep 参数@DNum,在click事件下用????????????

DECLARE @object intDECLARE @hr intEXEC   @hr=sp_OACreate CDONTS.NewMail,@object OUTEXEC   @hr=sp_OASetProperty @object,From,Your FriendEXEC   @hr=sp_OASetProperty @object,Body,This is......
答案就在这里:在sql server中用存储过程发送邮件
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

MySQL存储过程详解 http://www.data.5helpyou.com/article314.html

通过ado.net,指定CommandType.StoredProcedure,传入参数DNum,即可。

http://blog.csdn.net/itblog/article/details/752869

图片说明
这是在做级联删除时候写的存储过程,一般直接用就好了,不管在SqlServer还是vs,原理都一样