URGENT


hi all,

1. when m trying shrink tempdb , execute query shows following error

use tempdb
go
dbcc shrinkfile(templog,0)
backup log tempdb truncate_only
dbcc shrinkfile(templog,0)

msg 155, level 15, state 1, line 2
'truncate_only' not recognized backup option.

pls rep

thanks in advance.


munnuru k

hello,

microsoft removed capability(backup log truncate_only) sql server 2008.

i guess should using version 2008 or later, have remove statement backup log tempdb truncate_only

the official workaround in sql server 2008 , newer switch database’s recovery model simple .  empties out transaction log, thereby letting dba run dbcc shrinkfile afterwards, switch recovery model full. since temp db in case, in simple recovery model only..

thanks





SQL Server  >  SQL Server Database Engine



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........