Master DB stored procedures.
crashing_sux
Posts: 3
I saw another thread on cross database coding which would be a nice feature in some future release but a feature I would like to see implemented a little differently is access to master db stored procedures named sp_*.
This fits with how sql server works currently, when executing any stored procedure named sp_* it first checks the master database for the stored procedure, and if it does not exist it then checks the current db for the procedure. Currently if I do an EXEC sp_dboption sql prompt does not give me the parameter list. Having to use EXEC master..sp_dboption would be a workable solution but just using EXEC sp_dboption feels closer to how most of us work.
-Shane
This fits with how sql server works currently, when executing any stored procedure named sp_* it first checks the master database for the stored procedure, and if it does not exist it then checks the current db for the procedure. Currently if I do an EXEC sp_dboption sql prompt does not give me the parameter list. Having to use EXEC master..sp_dboption would be a workable solution but just using EXEC sp_dboption feels closer to how most of us work.
-Shane
Comments
Are you using SQL Prompt 3.1? Have you ticked Include system objects in the candidate list, in the options under the Candidates tab?
Decide wisely...
I think that the list of 'system objects' is hard-coded. I can look into that tomorrow and let you know.
http://www.red-gate.com/messageboard/vi ... php?t=4202
Does it work in SQL 2000, but not 2005 (or vice-versa?)
Decide wisely...