Object info ?


It's the possible to see which object (table,view,proc) used (not changed) in last year?
Thanks.
[172 byte] By [MirzaT] at [2008-2-15]
# 1
No, SQL Server does not automatically contain such information. You will need to have a trace running to record which objects are used, but to trace for a year would probably be a bit extreme.
ChrisHedgate at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Tools General...
# 2
This does not come for free, but can be done.

You can use DDL triggers to create custom logging of DDL changes, also there is a constant lightweight trace for SQL Server 2005 that tracks DDL changes, but this rolls over at 100MB based on file size, so you would have to extract data from this file frequently to prevent its loss.

There is a report in SSMS that shows you latest DDL changes in this file.

-Euan

EuanGarden at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Tools General...

SQL Server

Site Classified