dbTalk Databases Forums  

Database clean Up

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Database clean Up in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SP
 
Posts: n/a

Default Database clean Up - 08-15-2006 , 04:42 PM






Hi,

We are in a process of cleaning all our databases. We want to delete all the
objects( Basically tables, Views, stored Procedures) which have not been used
since 2003.
My question is how to figure out that when was the last time the object was
accessed and who was the user who accessed this object and when was the
lastime it was accessed.

Is anybody having any script written already or if you can reflect which
systables i can use to find this info will be helpful
Thank You much in advance.

SP

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Database clean Up - 08-16-2006 , 12:55 AM






You cannot get this information from any tables. SQL Server has no record
of who accessed what tables in the way you want.


--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"SP" <SP (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

We are in a process of cleaning all our databases. We want to delete all
the
objects( Basically tables, Views, stored Procedures) which have not been
used
since 2003.
My question is how to figure out that when was the last time the object
was
accessed and who was the user who accessed this object and when was the
lastime it was accessed.

Is anybody having any script written already or if you can reflect which
systables i can use to find this info will be helpful
Thank You much in advance.

SP



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.