Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find Redundant Database Objects

Status
Not open for further replies.

u104741

MIS
Aug 26, 2003
94
GB
Is there an easy way to find out when a stored proc or a view was last run in sql server 2000.

I am trying to clean up a database but dont want to remove views, procedures and functions that other applications or dts packages may be calling upon for data.

Ideally i was kinda hoping that there is a system table that keeps a record of the last time each object is called???

Any ideas would be grately appreciated...

j
 
Do you have access to the application code? It might be eassier to search through the code to get a list of objects that are currently accessed. It might not be the best aproach but it will provide you with a starting list of good objects.

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
thanks guys i was afraid that was the answer. Unfortunatly i dont have access to the code there are 20 or so apps + 100s of DTS packages running on dozens of different servers.. + views and SPs from other DBs on other servers that could be calling into the DB im working on... its a proper mess me thinks!! i think monitoring will be the only way....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top