Re: SP_ in Stored Procedure Name
From: Prabhat (not_a_mail_at_hotmail.com)
Date: 05/20/04
- Next message: Malik: "Regularly update table"
- Previous message: Vinodk: "Re: Reporting Services"
- In reply to: Wayne Snyder: "Re: SP_ in Stored Procedure Name"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 May 2004 12:33:37 +0530
Hi Hari & Wayne,
Thanks.
Prabhat
"Wayne Snyder" <wsnyder@computeredservices.com> wrote in message
news:uJTXmYZPEHA.3300@TK2MSFTNGP09.phx.gbl...
> As Hari says, you are correct. We should never name OUR procs sp_, because
> master will be searched first, and the sp will not be found, then it will
> look in our db.... This forces a failed SP lookup for each call which is
> unnecessary.
>
> Additionally it is confusing, because as a convention (most) all system
> procs are named like that and those who intend to maintain them might also
> look in master first... You might name your SPs something like p_
>
> or anything else.
>
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> www.mariner-usa.com
> (Please respond only to the newsgroups.)
>
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
>
>
> "Prabhat" <not_a_mail@hotmail.com> wrote in message
> news:OptyhhYPEHA.1512@TK2MSFTNGP10.phx.gbl...
> > Resending the Post Again as After one day of Posting It did not appear
in
> > newsgroup.
> >
> > Hi All,
> >
> > I have one doubt. If I have given my Stored Procedure name begin with
the
> > name "SP_" then when I Try to execute the Stored Procedure then Will the
> SQL
> > Server will serach for that Stored Procedure first in MASTER database
and
> > then the Current Database?
> >
> > If That is the case. Then Why SQl Server search for the Stored procedure
> in
> > Master first?
> >
> > Thanks
> > Prabhat
> >
> >
> >
>
>
- Next message: Malik: "Regularly update table"
- Previous message: Vinodk: "Re: Reporting Services"
- In reply to: Wayne Snyder: "Re: SP_ in Stored Procedure Name"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|