April 16, 2010 at 4:23 am
I just wonder where I can find the backed up files for my database when I run the following command:
USE DatabaseName
GO
DBCC SHRINKFILE(<TransactionLogName>, 1)
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<TransactionLogName>, 1)
GO
I am using SQL 2005.
April 16, 2010 at 4:38 am
You are not backing up. The above command truncate the log file without backing up.
April 16, 2010 at 5:12 am
K. Hari Das (4/16/2010)
I just wonder where I can find the backed up files for my database when I run the following command:USE DatabaseName
GO
DBCC SHRINKFILE(<TransactionLogName>, 1)
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<TransactionLogName>, 1)
GO
I am using SQL 2005.
Go and look the BOL.
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
April 16, 2010 at 6:34 am
Thanks for the reply :))
April 16, 2010 at 7:26 am
K. Hari Das (4/16/2010)
Thanks for the reply :))
Ur welcome....:-)
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply