Kuv yuav nrhiav tau tempdb loj li cas hauv SQL Server?
Kuv yuav nrhiav tau tempdb loj li cas hauv SQL Server?

Video: Kuv yuav nrhiav tau tempdb loj li cas hauv SQL Server?

Video: Kuv yuav nrhiav tau tempdb loj li cas hauv SQL Server?
Video: Nujsua Nkauj tshisb-Yog Koj Yuav Nrhiav Xwb Yeej taus 2024, Kaum ib hlis
Anonim

Nws yog ib qho yooj yim siv SSMS los xyuas qhov tam sim no tempdb loj . Yog koj right click on tempd ib thiab xaiv Properties lub vijtsam hauv qab no yuav qhib. Cov tempd ib nplooj ntawv cov cuab yeej database yuav qhia qhov tam sim no tempdb loj raws li 4.6 GB rau txhua ntawm ob cov ntaub ntawv cov ntaub ntawv thiab 2 GB rau cov ntaub ntawv teev cia. Yog koj nug DMV sib.

Ib yam li ntawd, nws tau nug, Kuv yuav teeb tsa TempDB loj li cas hauv SQL Server?

Cheat Sheet: Yuav ua li cas Configure TempDB rau Microsoft SQL Server . Qhov luv version: teeb tsa ib ntim / tsav rau TempDB . Faib tag nrho qhov chaw los ntawm 9, thiab qhov ntawd yog koj qhov loj tus lej. Tsim 8 cov ntaub ntawv sib npaug sib npaug thiab ib daim ntawv teev npe, txhua qhov ntawd qhov loj.

Ib yam li ntawd, peb puas tuaj yeem txo TempDB hauv SQL Server? Hauv SQL Server 2005 thiab tom qab versions, shrinking tus tempd ib database tsis txawv li shrinking tus neeg siv database tsuas yog rau qhov tseeb tias tempd ib resets rau nws configured loj tom qab txhua restart ntawm qhov piv txwv ntawm SQL Server . Nws yog kev nyab xeeb khiav ntsws hauv tempd ib thaum tempd ib kev ua haujlwm tsis tu ncua.

Yog li ntawd, TempDB yog dab tsi hauv SQL Server?

Tempdb system database yog ib qho chaw thoob ntiaj teb uas muaj rau txhua tus neeg siv txuas nrog rau qhov piv txwv ntawm SQL Server thiab siv los tuav cov hauv qab no: Cov neeg siv khoom ib ntus uas tau tsim tshwj xeeb, xws li: thoob ntiaj teb lossis hauv zos ib ntus. rooj , khaws cia ib ntus cov txheej txheem , table variables, los yog cursors.

TempDB puas poob qis?

Yog, SQL Server cov ntaub ntawv ua tsis yog shrink cia li . Lawv nyob twj ywm qhov loj me tshwj tsis yog koj qhia meej ntsws lawv, los ntawm SQL Server Management Studio lossis los ntawm kev siv DBCC SHRINKFILE hais kom ua. Koj tuaj yeem teeb tsa qhov ntawd hauv cov ntaub ntawv ntu ntawm cov khoom siv hauv cov ntaub ntawv, lossis nrog ALTER DATABASE hais kom ua.

Pom zoo: