Unix Technical Forum

Is there a way to track View usage?

This is a discussion on Is there a way to track View usage? within the SQL Server forums, part of the Microsoft SQL Server category; --> We're using SQL Server 2000 and we'd like to be able to track our view usage to tell which ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 05:51 PM
Gary DeRousse
 
Posts: n/a
Default Is there a way to track View usage?

We're using SQL Server 2000 and we'd like to be able to track our view
usage to tell which of our views get used most often. This will help
us determine which views we need to concentrate on first for
optimizing, indexing, etc... Does anybody know if there's a way to
tell when a view is opened?

Thanks,

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 05:51 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Is there a way to track View usage?

Gary DeRousse (garyderousse@yahoo.com) writes:
> We're using SQL Server 2000 and we'd like to be able to track our view
> usage to tell which of our views get used most often. This will help
> us determine which views we need to concentrate on first for
> optimizing, indexing, etc... Does anybody know if there's a way to
> tell when a view is opened?


I would guess the Profiler is your best bet.

--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 05:52 PM
Gary DeRousse
 
Posts: n/a
Default Re: Is there a way to track View usage?

Thanks for the answer. I had briefly thought of the Profiler but not
knowing much about it, didn't know if it's suitable for this length of
tracking, which would probably be anything from a couple of months, to
a permanent type of thing. But I'll look into it more.


Erland Sommarskog <sommar@algonet.se> wrote in message news:<Xns93F321C532A4Yazorman@127.0.0.1>...
> Gary DeRousse (garyderousse@yahoo.com) writes:
> > We're using SQL Server 2000 and we'd like to be able to track our view
> > usage to tell which of our views get used most often. This will help
> > us determine which views we need to concentrate on first for
> > optimizing, indexing, etc... Does anybody know if there's a way to
> > tell when a view is opened?

>
> I would guess the Profiler is your best bet.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 05:52 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Is there a way to track View usage?

Gary DeRousse (garyderousse@yahoo.com) writes:
> Thanks for the answer. I had briefly thought of the Profiler but not
> knowing much about it, didn't know if it's suitable for this length of
> tracking, which would probably be anything from a couple of months, to
> a permanent type of thing. But I'll look into it more.


Yeah, I agree that it is not the most optimal tool for the task, but this
the standard reply to this sort of question.

It takes some elaborate filtering to get some useful data.


--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com