简体   繁体   中英

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.

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:

exec sp_helptext xxxx where xxxx is your sp name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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