OS - Windows 2008 R2
SQL Server - 2008 R2 SP2
I executed the following t-sql to gather statistics info on a server:
declare @temp1 table (DbName varchar(250), TableName varchar(250), IndexName varchar(250), IndexType varchar(100), Date_Updated datetime)
insert into @temp1
EXEC sp_MSForEachDB
'use [?]; SELECT ''[?]'' AS DbName,
t.name AS Table_Name
,i.name AS Index_Name
,i.type_desc AS Index_Type
,STATS_DATE(i.object_id,i.index_id) AS Date_Updated
FROM
sys.indexes i JOIN
sys.tables t ON t.object_id = i.object_id
WHERE
i.type > 0
ORDER BY
t.name ASC
,i.type_desc ASC
,i.name ASC '
select * from @temp1
order by DbName desc
I noticed some indexes on tempdb.
![]()
I was wondering if someone could shed some light on this tempdb activity and if I could trace theses indexes/table objects to original source database/table objects, if possible. In addition, is such an activity on tempdb a potential performance hazard?
Thank you.
-Jeelani
SQL Server - 2008 R2 SP2
I executed the following t-sql to gather statistics info on a server:
declare @temp1 table (DbName varchar(250), TableName varchar(250), IndexName varchar(250), IndexType varchar(100), Date_Updated datetime)
insert into @temp1
EXEC sp_MSForEachDB
'use [?]; SELECT ''[?]'' AS DbName,
t.name AS Table_Name
,i.name AS Index_Name
,i.type_desc AS Index_Type
,STATS_DATE(i.object_id,i.index_id) AS Date_Updated
FROM
sys.indexes i JOIN
sys.tables t ON t.object_id = i.object_id
WHERE
i.type > 0
ORDER BY
t.name ASC
,i.type_desc ASC
,i.name ASC '
select * from @temp1
order by DbName desc
I noticed some indexes on tempdb.
I was wondering if someone could shed some light on this tempdb activity and if I could trace theses indexes/table objects to original source database/table objects, if possible. In addition, is such an activity on tempdb a potential performance hazard?
Thank you.
-Jeelani