|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Usage statisitcs
Hello,
Ok, so maybe the information I want isn't here but I would think it should be. I am running two MS SQL 7.0 servers that have been running with very little maintenance for some time now. There are tons of tables and I get a very distinct feeling a lot of them are not even being used anymore. I'd like to do some spring cleaning of sorts but I can't figure out which of all these tables are in use and which are not. Is there a function in SQL 7 enterprise manager or whatever where I can see information like when a table was last queried, updated, etc....? -- -Scott Nope. The best you could do would be to use Profiler to watch the SQL
being executed on the server (including statements executed from within T-SQL batches & stored procs) and filter the "Text" column to look for any references to the tables you suspect aren't being accessed any more. Of course, that won't guarantee that someone won't try to access one of the tables a few minutes after you finally stop Profiler but if you leave it running long enough it should give you a fairly good idea. -- Show quoteHide quote*mike hodgson* |/ database administrator/ | mallesons stephen jaques *T* +61 (2) 9296 3668 |* F* +61 (2) 9296 3885 |* M* +61 (408) 675 907 *E* mailto:mike.hodgson@mallesons.nospam.com |* W* http://www.mallesons.com Scott Elgram wrote: >Hello, > Ok, so maybe the information I want isn't here but I would think it >should be. I am running two MS SQL 7.0 servers that have been running with >very little maintenance for some time now. There are tons of tables and I >get a very distinct feeling a lot of them are not even being used anymore. >I'd like to do some spring cleaning of sorts but I can't figure out which of >all these tables are in use and which are not. > Is there a function in SQL 7 enterprise manager or whatever where I can >see information like when a table was last queried, updated, etc....? > > >
Other interesting topics
custom identity field
why arent trans logs getting truncated with maintenance plan? Duplicate values difference between 'Backup' and DB maint. plan backup? pre-1750 (#?!) dates in SQL table truncating transaction logs Representing currency? Restoring stored procedure HELP! Memory settings/considerations when running multiple instances of SQL Server Transferring a sql server database to another server |
|||||||||||||||||||||||