Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Finding the Top 20 most Used/Active tables in a DB

Author  Topic 

asn187
Starting Member

9 Posts

Posted - 2007-07-11 : 05:17:39
Hi,

I have a legacy sql 2000 database with numerous stored procedure and tables.

I need to find out the top 20 most used/accessed tables in the database

Any one know how i could do this type of trace with profiler?

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-11 : 05:42:10
loot at SP:Completed event. when done put the trace into the table and do some stasts.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

asn187
Starting Member

9 Posts

Posted - 2007-07-11 : 05:55:25
sorry this may seem like a very basic question but the stats that go into a table i have to create it beforehand? but how can i create it without knowing the column types names etc?
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-11 : 05:58:37
no you don't have to.
when you finish the trace you simply save it to a table which gets created by itself.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

asn187
Starting Member

9 Posts

Posted - 2007-07-11 : 06:50:03
oh ok then thanks for ur help much appreicated
Go to Top of Page
   

- Advertisement -