Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

sql server 2008 r2 tempdb- limit size

Posted on 2013-12-01
1
Medium Priority
?
879 Views
Last Modified: 2013-12-08
Hi,

Running bulk operations increase sql server 2008 tempdb size a lot. Is there anyway to put a limit on its size? I dont mind opertions getting slow.
0
Comment
Question by:baberamin
1 Comment
 
LVL 9

Accepted Solution

by:
QuinnDex earned 2000 total points
ID: 39688010
Set the recovery model of tempdb to SIMPLE. This model automatically reclaims log space to keep space requirements small.

to switch recovery model

Use ALTER DATABASE, as follows:

USE master;

ALTER DATABASE database_name SET RECOVERY SIMPLE;

Open in new window



thing to consider before changing to simple recovery

http://technet.microsoft.com/en-us/library/ms190203%28v=sql.105%29.aspx
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question