I created a stored procedure which ran successfully but I can’t seem to find the procedure in the usual place within the database and I can’t execute the procedure in Excel but I can drop the procedure.
I am confused.
I have written many stored procedures and never had this problem. Thanks in advance.
Sounds like something I’ve done before: inadvertently added the stored proc to the
masterdatabase rather than the database I thought I was working in.Check the
masterdatabase underSystem Databases.To prevent this in the future, you may want to consider adding a
use dbnamestatement in the script.