Answer the question
In order to leave comments, you need to log in
How to restore and backup MSSQL database on another instance?
Hello.
I have an ancient MSSQLServer 2005 with a 3 gig database and a 300 gig log file.
The log is full - the database is not working. Shrink is not working.
I tried to detach the database, it won't attach back - it swears at the log file, says it's full. Expand the backup nearby does not allow free space.
I want to deploy a backup on another 2016 EXPRESS server, backup it there and deploy it to 2005.
Will such a scheme work or will there be problems due to other versions?
Answer the question
In order to leave comments, you need to log in
Shrink is not working.
BACKUP LOG [General] WITH NO_LOG
GO
--
DBCC SHRINKDATABASE ([General])
GO
I want to deploy a backup on another 2016 EXPRESS server, backup it there and deploy it to 2005.MS SQL is not backwards compatible.
I also wanted to write that on the remaining MDF file, which could not be attached back due to an error with an overflowing log, a forced attachment worked using the following command:
USE [master]
GO
CREATE DATABASE [TestDB] ON
( FILENAME = N'E:\MSSQL\TestDBCopy.mdf' )
FOR ATTACH_FORCE_REBUILD_LOG
GO
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question