![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear Professional, One quick question, is there any way we can shrink tempdb database and don't need to restart SQL Server services? Thanks in advance |
#3
| |||
| |||
|
|
Here are the supported ways to shrink tempdb. http://www.support.microsoft.com/?id=307487 -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23ftnxjVSHHA.996 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Dear Professional, One quick question, is there any way we can shrink tempdb database and don't need to restart SQL Server services? Thanks in advance |
#4
| |||
| |||
|
|
Is there any I can shrink tempdb data file but don't want to restart the services? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:%232yM8hYSHHA.1000 (AT) TK2MSFTNGP05 (DOT) phx.gbl... Here are the supported ways to shrink tempdb. http://www.support.microsoft.com/?id=307487 -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23ftnxjVSHHA.996 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Dear Professional, One quick question, is there any way we can shrink tempdb database and don't need to restart SQL Server services? Thanks in advance |
#5
| |||
| |||
|
|
Hello, You could use DBCC SHRINKFILE. use tempdb go -- this command shrinks the data file dbcc shrinkfile (tempdev, 'target size in MB') go -- this command shrinks the log file dbcc shrinkfile (templog, 'target size in MB') go Thanks Hari "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:u29%23VTsSHHA.480 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Is there any I can shrink tempdb data file but don't want to restart the services? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:%232yM8hYSHHA.1000 (AT) TK2MSFTNGP05 (DOT) phx.gbl... Here are the supported ways to shrink tempdb. http://www.support.microsoft.com/?id=307487 -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23ftnxjVSHHA.996 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Dear Professional, One quick question, is there any way we can shrink tempdb database and don't need to restart SQL Server services? Thanks in advance |
#6
| |||
| |||
|
|
Thanks hari, but this command is secure and not harmful to run in the production box right. "Hari Prasad" <hari_prasad_k (AT) hotmail (DOT) com> wrote in message news:%235SHLKvUHHA.1000 (AT) TK2MSFTNGP05 (DOT) phx.gbl... Hello, You could use DBCC SHRINKFILE. use tempdb go -- this command shrinks the data file dbcc shrinkfile (tempdev, 'target size in MB') go -- this command shrinks the log file dbcc shrinkfile (templog, 'target size in MB') go Thanks Hari "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:u29%23VTsSHHA.480 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Is there any I can shrink tempdb data file but don't want to restart the services? Thanks "Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message news:%232yM8hYSHHA.1000 (AT) TK2MSFTNGP05 (DOT) phx.gbl... Here are the supported ways to shrink tempdb. http://www.support.microsoft.com/?id=307487 -- Andrew J. Kelly SQL MVP "Rogers" <naissani (AT) hotmail (DOT) com> wrote in message news:%23ftnxjVSHHA.996 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Dear Professional, One quick question, is there any way we can shrink tempdb database and don't need to restart SQL Server services? Thanks in advance |
![]() |
| Thread Tools | |
| Display Modes | |
| |