sql server 2005 - Is there a way to find most expensive queries within a particular time? -
i did ask before. here - run .net application , monitor sql queries being done , monitor compared sql profiler logs everything.
so, know of tool or way can monitor queries application , find out expensive queries of session ?
in applications connection string sql server, add (ottomh) application_name = 'abc app'. in effect should like
'server=yourservername;integrated security=sspi;application_name=abc app'
once app running, can run sp_who2
in sql server management studio view connections - check there make sure application showing name rather generic name .net apps.
*double check if app name or application_name*
when setting trace flags in profiler, go events tab, , click on column filters. first 1 applicationname. set '%abc app%'
Comments
Post a Comment