TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft SQL Server

Notices

Thousands of SQL Agent Queries in Plan Cache

Microsoft SQL Server


Reply
 
Thread Tools Display Modes
Old 11-12-2007, 04:21 PM   #11
Code Wench
Guest
 
Posts: n/a
Re: Thousands of SQL Agent Queries in Plan Cache

Thanks for your response! I did check that already. Parameterization is set
to forced on MSDB.


"Jason Massie" wrote:

> You can set parameterization to forced.
>
> ALTER DATABASE MSDB
> set parameterization forced
>
>
> --
> Jason Massie
> Web:
> RSS:
>


  Reply With Quote
Old 11-12-2007, 04:24 PM   #12
Jason Massie
Guest
 
Posts: n/a
Re: Thousands of SQL Agent Queries in Plan Cache

I think the best workaround you are going to find would be running this from
a job periodically: DBCC FLUSHPROCINDB(4). I have hundreds, though not
1000's like you, a 32GB x64 system. I looked at sys.dm_exec_plan_attributes
for these plans and the difference between the ones being reused and the
ones with one use count was a value of 0 and 4 for db_exec.

Is this really a problem? These will be aged out of cache as space is
needed. Do you has sp2 installed? There are enhancements.


--
Jason Massie
Web:
RSS:



"Code Wench" <> wrote in message
news:...
> Thanks for your response! I did check that already. Parameterization is
> set
> to forced on MSDB.
>
>
> "Jason Massie" wrote:
>
>> You can set parameterization to forced.
>>
>> ALTER DATABASE MSDB
>> set parameterization forced
>>
>>
>> --
>> Jason Massie
>> Web:
>> RSS:
>>

>



  Reply With Quote
Old 11-12-2007, 04:37 PM   #13
Code Wench
Guest
 
Posts: n/a
Re: Thousands of SQL Agent Queries in Plan Cache

Thanks for your response! I did check that already. Parameterization is set
to forced on MSDB.


"Jason Massie" wrote:

> You can set parameterization to forced.
>
> ALTER DATABASE MSDB
> set parameterization forced
>
>
> --
> Jason Massie
> Web:
> RSS:
>


  Reply With Quote
Old 11-12-2007, 04:40 PM   #14
Jason Massie
Guest
 
Posts: n/a
Re: Thousands of SQL Agent Queries in Plan Cache

I think the best workaround you are going to find would be running this from
a job periodically: DBCC FLUSHPROCINDB(4). I have hundreds, though not
1000's like you, a 32GB x64 system. I looked at sys.dm_exec_plan_attributes
for these plans and the difference between the ones being reused and the
ones with one use count was a value of 0 and 4 for db_exec.

Is this really a problem? These will be aged out of cache as space is
needed. Do you has sp2 installed? There are enhancements.


--
Jason Massie
Web:
RSS:



"Code Wench" <> wrote in message
news:...
> Thanks for your response! I did check that already. Parameterization is
> set
> to forced on MSDB.
>
>
> "Jason Massie" wrote:
>
>> You can set parameterization to forced.
>>
>> ALTER DATABASE MSDB
>> set parameterization forced
>>
>>
>> --
>> Jason Massie
>> Web:
>> RSS:
>>

>



  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:12 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional