Tempdb issue - sql server 2005\2008

Hi All,

We are facing logical disk space issue on tempdb volumes. In off-business hrs, there is no transactions on server (open\uncommited). But we are receiving logical disk space alert. We are not able to find root cause of the issue.

Please share your experience\solution on our issue.

Please find the attached structure of tempdb and volumes and plesae suggest is there any restructuring is required for tempdb.

Thanks in Advance
untitled.bmp
Structure.txt
sg05121983Asked:
Who is Participating?
 
TempDBAConnect With a Mentor Commented:
It is always better to separate log and data files for tempdb. So, it will be better if you can move it from D drive provided you have sufficient space given.
Also, you can store the data from the below query by running a job every minute for a day. This will help you analyze what is using tempdb files.

SELECT
     spid = c.session_id,
     c.[host_name],
     c.program_name,
     b.transaction_id,
     b.is_user_transaction,
     dbname = DB_NAME(a.database_id),
     log_space_reserved_mb = a.database_transaction_log_bytes_reserved / (1024.0*1024.0),
     log_space_used_mb = a.database_transaction_log_bytes_used / (1024.0*1024.0),
     a.database_transaction_log_record_count
FROM
     sys.dm_tran_database_transactions a (NOLOCK)
     INNER JOIN sys.dm_tran_session_transactions b (NOLOCK)
          ON b.transaction_id = a.transaction_id
     INNER JOIN sys.dm_exec_sessions c (NOLOCK)
          ON c.session_id = b.session_id
WHERE
      a.database_id = DB_ID('tempdb')
0
 
x-menIT super heroCommented:
check your index maintenace jobs
0
 
sg05121983Author Commented:
Hi x-men,

I have already specified, there is no transactions\jobs are running on off-business hrs.

still we are receiving logical disk space low alerts.
0
 
x-menConnect With a Mentor IT super heroCommented:
you mentioned "there is no transactions on server ".

there is an option, on index maintenance jog, to sort using the temp db, and usualy, index maintenance jobs are runned off business hours.

that is just a thought...
0
 
sg05121983Author Commented:
--
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.