English 中文(简体)
SQL Server: Recovery model effect on TempDB
原标题:

Does the recovery model of a database effect the size of the tempdb.mdf?

We have a database which involves a lot of processing and bulk inserts. We are having problems with the tempdb file growing to extremely large sizes (over 70 gb). The database in question is set to Full Recovery. Will changing it to Simple Recovery(on the database with all the transactions not the tempdb) prevent it from using the tempdb on these large inserts and bulk loads?

最佳回答

The recovery mode of the database doesn t affect its use of tempdb. The tempdb usage is most likely from the processing part: static cursors, temp tables and table variables, sort operations and other worktable backed query operators, large variables and parameters.

The bulk insert part (ie. the part which would be affected by the recovery mode) has no tempdb impact.

问题回答

tempdb Size and Placement Recommendations

To achieve optimal tempdb performance, we recommend the following configuration for tempdb in a production environment:

Set the recovery model of tempdb to SIMPLE. This model automatically reclaims log space to keep space requirements small.

http://msdn.microsoft.com/en-us/library/ms175527.aspx





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签