Re: Stored Procedures in the Master Database
From: Kalen Delaney (replies_at_public_newsgroups.com)
Date: 09/19/03
- Next message: Scott: "Re: Stored Procedures in the Master Database"
- Previous message: Kalen Delaney: "Re: Stored Procedures in the Master Database"
- In reply to: Sue Hoegemeier: "Re: Stored Procedures in the Master Database"
- Next in thread: Sue Hoegemeier: "Re: Stored Procedures in the Master Database"
- Reply: Sue Hoegemeier: "Re: Stored Procedures in the Master Database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 19 Sep 2003 09:05:39 -0700
The error occurs on a GRANT, not EXEC. GRANT can only be run on objects in
the current database.
-- HTH ---------------- Kalen Delaney SQL Server MVP www.SolidQualityLearning.com "Sue Hoegemeier" <Sue_H@nomail.please> wrote in message news:sj9mmvskgbu1n09hcla05osq071776ea08@4ax.com... > Did you fully qualify the stored procedure when executing > it? e.g. > exec master.dbo.StoredProcedure > > -Sue > > On Fri, 19 Sep 2003 08:32:56 -0700, "Scott" > <scott2617@hotmail.com> wrote: > > >I have a stored procedure that I want to make available to > >all databases. I am trying to grant permissions with the > >following command in the master database: > > > >GRANT EXECUTE ON storedprocedure TO public > > > >When I try to execute the stored procedure from another > >database I get the error message: > > > >Server: Msg 2812, Level 16, State 62, Line 1 > >Could not find stored procedure 'storedprocedure'. > > > >Please advise on the correct syntax. >
- Next message: Scott: "Re: Stored Procedures in the Master Database"
- Previous message: Kalen Delaney: "Re: Stored Procedures in the Master Database"
- In reply to: Sue Hoegemeier: "Re: Stored Procedures in the Master Database"
- Next in thread: Sue Hoegemeier: "Re: Stored Procedures in the Master Database"
- Reply: Sue Hoegemeier: "Re: Stored Procedures in the Master Database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading