Re: Owner Qualified procedures and compiles
From: Paul Cahill (xyzpaul.xyzcahill_at_dsl.pipex.com)
Date: 04/30/04
- Next message: Aaron Bertrand [MVP]: "Re: primary key for a personnel system"
- Previous message: Aaron Bertrand [MVP]: "Re: Select a record within a recordset"
- In reply to: Trey Walpole: "Re: Owner Qualified procedures and compiles"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 19:19:43 +0100
So it's worth doing but probably only when you are editing a proc for other
changes.
I might ask the VB guys just to put it in their calls if they go though a
common piece of code.
Thanks.
"Trey Walpole" <treyNOpole@SPcomcastAM.net> wrote in message
news:e45xZdtLEHA.620@TK2MSFTNGP10.phx.gbl...
> My understanding for this situation is that in SQL Server you should make
> sure that stored procs and all objects within a stored procedure are
> referenced by owner to reduce not necessarily recompiles but rather
compile
> locks, while it determines if all objects called within the stored proc
have
> the same owner(s) as those in the currently cached plan.
>
> As Quentin mentioned, the impact is usually negligible - although it could
> have an effect in ultra-high usage situations.
>
> for more info on reducing recompiles check out:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q243586
>
>
> "Paul Cahill" <XYZpaul.cahillXYZ@blueyonder.co.uk> wrote in message
> news:O9GXovsLEHA.1032@tk2msftngp13.phx.gbl...
> > I read somewhere that to avoid recompiles and compile locks that one
> should
> > create all procedures with a qualified owner name.
> >
> > eg
> > create procedure dbo.myproc
> >
> > Would it also be true that for EXEC's from within a procedure that one
> > should qualify the owner on the exec call.
> >
> > eg
> > create procedure dbo.myproc
> > as
> > exec dbo.MyOtherProc
> > -- rather than
> > exec MyOtherProc
> > return
> > go
> >
> > Should I get our vb guys to prefix their ADO database calls with dbo. as
> > well?
> >
> > Thanks
> > Paul Cahill
> >
> >
>
>
- Next message: Aaron Bertrand [MVP]: "Re: primary key for a personnel system"
- Previous message: Aaron Bertrand [MVP]: "Re: Select a record within a recordset"
- In reply to: Trey Walpole: "Re: Owner Qualified procedures and compiles"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|