SQL 2008R2
I'm very new to this so excuse my lack of knowledge.
I'm trying to see when all the table were last updated.
I run this.
use AccountOperations
select object_name([object_id]), last_user_seek, last_user_scan, last_user_lookup, Last_user_update
from sys.dm_db_index_usage_stats
where database_id = db_id( 'AccountOperations' )
go
and I get this
Invalid object name 'sys.dm_db_index_usage_stats'.
Thanks!
I'm very new to this so excuse my lack of knowledge.
I'm trying to see when all the table were last updated.
I run this.
use AccountOperations
select object_name([object_id]), last_user_seek, last_user_scan, last_user_lookup, Last_user_update
from sys.dm_db_index_usage_stats
where database_id = db_id( 'AccountOperations' )
go
and I get this
Invalid object name 'sys.dm_db_index_usage_stats'.
Thanks!