|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
sys.dm_db_index_usage_statsSQL2005 SP1 Dev edition
I know I am just not understanding this correctly. When I run the DMV sys.dm_db_index_usage_stats the database_id column seems to be wrong or do not line up with sys.databases. The object ID's reported for database_id 4 actually exist in database_id 5. If I substitute database_id 5 for 4 everything lines up. I am reading this wrong? Does sys.database.database_id not line up with the database_id column in sys.dm_db_index_usage_stats? I do not think this is a bug because it does not seem to be reported anywhere. Thanks!!! Michael... Can you show us how you are using this view, and a sample of the results you
get back? -- Show quoteHTH Kalen Delaney, SQL Server MVP "Michael DeVoe NA Navision Support" <MichaelDeVoeNANavisionSupp***@discussions.microsoft.com> wrote in message news:F2538D2D-D6B4-4C1E-83F7-E4215FE5EEF0@microsoft.com... > SQL2005 SP1 Dev edition > > I know I am just not understanding this correctly. When I run the DMV > sys.dm_db_index_usage_stats the database_id column seems to be wrong or do > not line up with sys.databases. The object ID's reported for database_id > 4 > actually exist in database_id 5. If I substitute database_id 5 for 4 > everything lines up. I am reading this wrong? Does > sys.database.database_id > not line up with the database_id column in sys.dm_db_index_usage_stats? I > do > not think this is a bug because it does not seem to be reported anywhere. > > Thanks!!! > Michael... > > |
|||||||||||||||||||||||