[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

SQL Server Compact Jobs and how it effects the database

I have a SQL Server 2005 Database that has grown to over 200 gigabytes in a short span of time.  The database is Microsoft SQL Server's TempDB.  Now, I don't know why or how it grew so huge but if I were to shrink the database live, would it have any adverse effects?  On another note, what could be the issue and how?  I don't see how I can pull any data out of the temp tables in the TEMPDB so right now I am at a stand still.  Please let me know, thanks!
1 Solution
Tempdb is a global resource which is used to hold temporary objects created by users, Internal objects created by the SQL Server and row versions that are generated by data modification transactions.
So the tempDB can easily grow very large in a short amount of time when users run queries that return large results sets, create temporary tables, start a transaction in snapshot isolation, or when you rebuild indexes on large tables, etc.
I am not a fan of shrinking a DB without a good reason, however if you’re dunning short on storage space, you can shrink the temp DB and recover the space when the pertinent operation that has created the temporary objects in the TempDB finishes.
VBBRettAuthor Commented:
I have a TempDB that does not get smaller and it keeps on growing.  Right now, ours is over 200 gigs.  How can I stop this database from growing so much and what can I do to stop this process from happening?  Is this an internal error that keeps on flagging?

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now