Home All Groups Group Topic Archive Search About

Tuning Wizard cannot find SP

Author
15 Nov 2006 5:16 PM
Otis Bricker
After capturing some activity into a profile using the SQL2005 Profiler,
The database Tuning wizard seems to be unable to locate one and only one of
the stored Procedures that was called and gives me an E001 error/warning.

I have tried recreating the SP it still reports it missing. Since it was
run it is obviously there. It belongs to dbo and is called as such via ADO.

Any advice on how to help the Tuning engine see it?

Thanks.

Otis Bricker

Author
15 Nov 2006 11:42 PM
Aaron Bertrand [MVP]
I assume it is in the database you selected in the tuning advisor.  One
thing to try may be to edit the workload file and make sure that the object
is referenced using three-part naming database.owner/schema.object





Show quote
"Otis Bricker" <obric***@my-dejanews.com> wrote in message
news:Xns987C7CDDB9302obrickermydejanewsco@216.196.97.136...
> After capturing some activity into a profile using the SQL2005 Profiler,
> The database Tuning wizard seems to be unable to locate one and only one
> of
> the stored Procedures that was called and gives me an E001 error/warning.
>
> I have tried recreating the SP it still reports it missing. Since it was
> run it is obviously there. It belongs to dbo and is called as such via
> ADO.
>
> Any advice on how to help the Tuning engine see it?
>
> Thanks.
>
> Otis Bricker
Author
16 Nov 2006 12:38 AM
Otis Bricker
Show quote
"Aaron Bertrand [MVP]" <ten.xoc@dnartreb.noraa> wrote in
news:e4ZUJ$QCHHA.4256@TK2MSFTNGP04.phx.gbl:

> I assume it is in the database you selected in the tuning advisor.
> One thing to try may be to edit the workload file and make sure that
> the object is referenced using three-part naming
> database.owner/schema.object
>
>
>
>
>
> "Otis Bricker" <obric***@my-dejanews.com> wrote in message
> news:Xns987C7CDDB9302obrickermydejanewsco@216.196.97.136...
>> After capturing some activity into a profile using the SQL2005
>> Profiler, The database Tuning wizard seems to be unable to locate one
>> and only one of
>> the stored Procedures that was called and gives me an E001
>> error/warning.
>>
>> I have tried recreating the SP it still reports it missing. Since it
>> was run it is obviously there. It belongs to dbo and is called as
>> such via ADO.
>>
>> Any advice on how to help the Tuning engine see it?
>>
>> Thanks.
>>
>> Otis Bricker
>
>
>

Thanks. I'll give it a try. It would be odd if this was it though since it
manages to work out all the other SPs that are also called via ADO the same
way.

But it is worth trying and I'll pass back the results. Thanks again.

Otis
Author
2 Feb 2007 2:47 PM
Ken Powers
I'm having the same problem.  Can you tell me how to edit the workload file? 
I can't find any documentation about that.

Show quote
"Aaron Bertrand [MVP]" wrote:

> I assume it is in the database you selected in the tuning advisor.  One
> thing to try may be to edit the workload file and make sure that the object
> is referenced using three-part naming database.owner/schema.object
>
>
>
>
>
> "Otis Bricker" <obric***@my-dejanews.com> wrote in message
> news:Xns987C7CDDB9302obrickermydejanewsco@216.196.97.136...
> > After capturing some activity into a profile using the SQL2005 Profiler,
> > The database Tuning wizard seems to be unable to locate one and only one
> > of
> > the stored Procedures that was called and gives me an E001 error/warning.
> >
> > I have tried recreating the SP it still reports it missing. Since it was
> > run it is obviously there. It belongs to dbo and is called as such via
> > ADO.
> >
> > Any advice on how to help the Tuning engine see it?
> >
> > Thanks.
> >
> > Otis Bricker
>
>
>
Author
2 Feb 2007 2:56 PM
Aaron Bertrand [SQL Server MVP]
> I'm having the same problem.  Can you tell me how to edit the workload
> file?

Open it, find references to dbo.tablename, and change them to
dbname.dbo.tablename, save it.

A

AddThis Social Bookmark Button