I have a 1TB database that inherited. The database has 1 mdf file, 55 ndf, and 1 ldf. It is set to simple recovery mode. The database is on a SQL Server 2005 EE 64-bit. Three files are PRIMARY filegroup. And the rest each file has a unique filegroup name. Sp_helpfile returns the following. (I have deleted some extra identical rows for "Nocks?" to keep the look simpler.) The database name is RIM. name fileid filename filegroup size maxsize growth usage
ROE 1 E:\MDFS\ROE.mdf PRIMARY 230066688 KB Unlimited 102400 KB data onlyROE_log 2 F:\LDFS\RIM_log.LDF NULL 2203520 KB Unlimited 10% log onlyNocks1 3 E:\MDFS\Nocks1.ndf Nocks1 3072 KB Unlimited 10% data onlyNocks15 17 E:\MDFS\Nocks15.ndf Nocks15 7987520 KB Unlimited 10% data onlyNocks16 18 E:\MDFS\Nocks16.ndf Nocks16 8226688 KB Unlimited 10% data onlyNocks17 19 E:\MDFS\Nocks17.ndf Nocks17 8218816 KB Unlimited 10% data onlyNocks18 20 E:\MDFS\Nocks18.ndf Nocks18 9926592 KB Unlimited 10% data onlyNocks53 55 E:\MDFS\Nocks53.ndf Nocks53 3072 KB Unlimited 10% data onlyRIM 56 G:\MDFS\RIM.ndf PRIMARY 40758272 KB 61440000 KB 102400 KB data onlyRIM2 57 F:\LDFS\RIM2.ndf PRIMARY 40859648 KB 40960000 KB 102400 KB data only
I want to refresh our Dev environment but there is not enough space on Dev that I can backup the prod database and restore into Dev. Therefore, I was asked to refresh only ROE, Nocks15, and Nocks20.The following command created a bak file and I moved to Dev. BACKUP DATABASE RIM FILE = 'ROE', FILE = 'Nocks15' TO DISK = 'H:\Nocks15.bak'
But in Dev get an error when run the following:RESTORE DATABASE RIMFILE = 'Nocks15', FROM DISK = 'G:\Nocks15.bak'WITH RECOVERY
Msg 3004, Level 16, State 2, Line 1The primary filegroup cannot be backed up as a file backup because the database is using the SIMPLE recovery model. Consider taking a partial backup by specifying READ_WRITE_FILEGROUPS.Msg 3013, Level 16, State 1, Line 1BACKUP DATABASE is terminating abnormally.The Dev environment is set to simple recovery mode as well. How can I implement this?Canada DBA