Link to home
Start Free TrialLog in
Avatar of david_32
david_32

asked on

trigger on a dynamic management view

can you put a trigger on a DMV?
Avatar of dportas
dportas

Even if you could put a trigger on a DMV I don't think it would ever fire because they aren't updateable. DMVs are purely derived data.

What are you tring to achieve? Maybe a DDL trigger will do the job:
http://technet.microsoft.com/en-us/library/ms175941.aspx
Avatar of david_32

ASKER

I want to see how long an entry stays in the dm_exec_cached_plans DMV. Effectively seeing how long a plan is cached for
ASKER CERTIFIED SOLUTION
Avatar of Mark Wills
Mark Wills
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks