我有一个要测试的存储过程.我正在尝试通过 SQL Management Studio 对其进行测试.为了运行这个测试,我输入 ...
I have a stored procedure that I am trying to test. I am trying to test it through SQL Management Studio. In order to run this test I enter ...
exec my_stored_procedure 'param1Value', 'param2Value'最后一个参数是一个输出参数.但是,我不知道如何使用输出参数测试存储过程.
The final parameter is an output parameter. However, I do not know how to test a stored procedure with output parameters.
如何运行带有输出参数的存储过程?
How do I run a stored procedure with an output parameter?
推荐答案最简单的方法是在procedure中右击Sql Server 管理工作室(SSMS),
The easy way is to right-click on the procedure in Sql Server Management Studio(SSMS),
select 执行存储过程...
并根据提示为输入参数添加值.
and add values for the input parameters as prompted.
SSMS 然后将生成代码以在新的查询窗口中运行 proc,并为您执行它.您可以研究生成的代码,看看它是如何完成的.
SSMS will then generate the code to run the proc in a new query window, and execute it for you. You can study the generated code to see how it is done.
更多推荐
使用输出参数执行存储过程?
发布评论