存储过程(我可以在程序中使用存储过程) [英] Stored Procedures (can i use Stored Procedures in Procedures)

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

问题描述

大家好,

cn我在程序中写程序

请解释

谢谢

Hi All,
cn i write procedures in Procedures
please explain
Thanks

推荐答案

阅读以下内容: http://technet.microsoft.com/en-us/ library / ms189915.aspx [ ^ ]



如果你的意思是在存储过程中创建多个存储过程(例如模块),那么你不能。
Read the following : http://technet.microsoft.com/en-us/library/ms189915.aspx[^]

If you mean create multiple stored procedures inside a stored procedure (e.g. modules), then no you can't.


继Mehdi Gholam的答案之后,如果你的帖子的标题表明你的问题(而不是问题本身的文本)那么是的,你可以在程序中使用存储过程



只需一个接一个地调用它们,例如

Further to Mehdi Gholam's answer, if it is the title of your post that indicates your question (rather than the text of the question itself) then yes, you can "use stored procedures in procedures"

Just call them one after the other e.g.
exec dbo.StoredProc1
exec dbo.StoredProc2
-- etc



请注意,SQL Server不是异步的所以StoredProc2将在StoredProc1完成后才会启动


Note that SQL Server is not asynchronous so StoredProc2 will not start until StoredProc1 has finished


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

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