简体   繁体   English

存储过程未出现在 SSMS 中

[英]Stored Procedure is not appearing in SSMS

In SQL Server Management Studio 2008, I created a Stored Procedure, but its not appearing in the 'Stored Procedures' list when viewing in Object Explorer.在 SQL Server Management Studio 2008 中,我创建了一个存储过程,但在 Object 资源管理器中查看时,它没有出现在“存储过程”列表中。

I've also restarted the server, and restarted my machine, and tested on other machines, and the Stored Procedure still isn't appearing.我也重新启动了服务器,重新启动了我的机器,并在其他机器上进行了测试,但存储过程仍然没有出现。

I know that this Stored Procedure exists in the system because if I execute the following query:我知道这个存储过程存在于系统中,因为如果我执行以下查询:

exec dbo.sp_Orders

I get the following error:我收到以下错误:

Msg 201, Level 16, State 4, Procedure sp_Orders, Line 0
Procedure or Function 'sp_Orders' expects parameter '@OrderID', which was not supplied.

Therefore its recognising that the Stored Procedure exists, and even returns an error about a Parameter which was not supplied.因此它认识到存储过程存在,甚至返回关于未提供的参数的错误。

Why is this happening and how can I access the sproc?为什么会发生这种情况,如何访问存储区?

you can try followign to access your sp:你可以尝试followign来访问你的sp:

exec sp_helptext xxxx where xxxx is your sp name. exec sp_helptext xxxx其中 xxxx 是您的 sp 名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM