We are using SQL 2005. Generally once a month the Tempdb will grow from 10 meg to over 260 gig in size. Other wise it stays around 1 gig or samller in size. The tempdb.mdf is over 260 gig, templog.ldf is under 1 meg in size.
I am getting the following error:
‘Insufficient space in tempdb to hold row versions. Need to shrink the version store to free up some space in tempdb. Transaction (id=32588619 xsn=22898859 spid=92 elapsed_time=9494) has been marked as victim and it will be rolled back if it accesses the version store. If the problem persists, the likely cause is improperly sized tempdb or long running transactions. Please refer to BOL on how to configure tempdb for versioning.’
I am unable to shrink the TempDB , even though SQL say’s that 99% Available free space.
DBCC OPENTRAN('tempdb')
Gives me a message of ‘No active open transactions.’
USE tempdb
GO
SELECT name
FROM tempdb..sysobjects
SELECT OBJECT_NAME(id), rowcnt
FROM tempdb..sysindexes
WHERE OBJECT_NAME(id) LIKE '#%'
ORDER BY rowcnt DESC
Results of rowcnt = 0
The only way to solve the problem is to stop SQL Server (will be trying this tonight) or reboot the computer. Then tempDb shrinks to less then 1meg in size.
How do I shrink the TempDB without taking AX down and/or how to stop the growing problem?
Thanks
Abraham Z.