473,739 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Restore an Archived Filegroup on Another Server

Hello,

I have several archived filegroups that have data in them partitioned
based on the date. These filegroups have been removed from database
after archival. For example two months ago. Meantime my production
database is populating everyday.

Now I would like to restore one of my old archived filegroups. In order
to do that I would like to backup and restore the current Primary
filegroup to another server, and also restore the archived filegroup
into that server. The backup commands to backup the archived filegroup
and also backing up the primary are:

BACKUP DATABASE [DB1]
FILEGROUP = 'PRIMARY'
TO DISK = 'C:\DB1\PRIMARY .BAK'
WITH INIT , NOUNLOAD , NAME = N'PRIMARY Filegroup backup',
NOSKIP , STATS = 10, DESCRIPTION = N'PRIMARY Filegroup backup of
DB1',
NOFORMAT

BACKUP DATABASE [DB1]
FILEGROUP = 'DataGroup383'
TO DISK = 'C:\DB1\DataGro up383.BAK'
WITH INIT , NOUNLOAD , NAME = N'Filegroup backup',
NOSKIP , STATS = 10, DESCRIPTION = N'Filegroup backup of DB1',
NOFORMAT
Later I move the backup files to another server and use these commands
to do the restore on new server:

RESTORE DATABASE [DB1]
FILEGROUP = 'PRIMARY'
FROM DISK = 'C:\Archival\Ba ckups\PRIMARY.B AK'
WITH FILE = 1, NORECOVERY,
MOVE 'PRIMARY01' to 'C:\MSSQL\Data\ DB1\PRIMARY01.m df'

RESTORE DATABASE [DB1]
FILEGROUP = 'DataGroup383'
FROM DISK = 'C:\Archival\Ba ckups\DataGroup 383.BAK'
WITH FILE = 1, NORECOVERY,
MOVE 'DataFile383' to 'C:\MSSQL\Data\ DB1\DataFile383 .ndf'
At this point the database can not be used yet and it is on restore
mode then I use this command to recover it

RESTORE DATABASE [DB1] WITH RECOVERY

But I get an Error:

"Server: Msg 4318, Level 16, State 1, Line 1
File 'DataFile383' has been rolled forward to LSN 584800000040260 0001.
This log terminates at LSN 584800000038770 0001, which is too early to
apply the WITH RECOVERY option. Reissue the RESTORE LOG statement WITH
NORECOVERY.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally"

I tried several other things as well: backing up the current log and
restore it but it didn't work.
Please help or if this is not the right way to do this backup and
restore let me know how to do that. I really appreciate.

Dec 21 '05 #1
0 3151

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1664
by: csomberg | last post by:
SQL 2000 I have server1 with two filegroups. I want to backup FileGroup Primary on Server1 and Primary has a physical file called MyData.mdf. I have server2 with the same database and two filegroups BUT the Physical names are different. The Primary FileGroup is in physical file OurData.mdf
2
1994
by: si.downes | last post by:
Using SQL Server 2000 SP3 I'm developing a data warehouse where data will be archived off to a filegroup, this filegroup backed up and the tables in this filegroup truncated to free up space on the server. So using Enterprise Manager I've copied data to the filegroup tables, backed up the file group, truncated the tables, but when I have restored the file group the database is stuck in a state of '(loading...)' and I can't get it to...
1
1533
by: G. Dean Blake | last post by:
How can I backup and restore a SQLServer DB from a .net VB program? Thanks, G
0
1250
by: Takpol | last post by:
Greetings Group Members, I am going to implement a strategy for archiving and restoring old filegroups. Part of my data has been stored in date partitioned files and filegroups. So the archive is going to backup older than six months filegroups into the tape and removes them from the production database. The restore strategy is going to work as this: user would be able to ask for restoring old filegroups. Every time there is a restore...
1
2719
by: jkv10_2005 | last post by:
Hi, I have the following SQL procedure I am running to clean up a filegroup and move all data to a single .MDF file: use <db_name> print 'Move <db_name> db contents to MDF file' DBCC SHRINKFILE ('<db_name>_1_Data', EMPTYFILE) DBCC SHRINKFILE ('<db_name>_Log', EMPTYFILE) DBCC SHRINKFILE ('<db_name>_2_Data', EMPTYFILE)
0
2145
by: raj.raghavan | last post by:
Hi, I have a database were all the indexes are in a seperate filegroup a few large tables are in a seperate filegroup. We take backup at different times and I have backup of primary, two filegroup and then transaction logs. The backup was successful when I restore the same backup it is erroring out with this error: Server: Msg 3135, Level 16, State 2, Line 1 The backup set in file 'E:\Manual Backup\test_primary.bak' was created by...
1
936
by: Utahduck | last post by:
I've been having some issues so forgive me if this double-posts. Because I have some large but static Filegroups within a database I prefer to backup my filegroups instead of everything at once. This is SQL Server 2000. The other day I backed up a file with this command: BACKUP DATABASE Thomasville FILEGROUP = 'PRIMARY'
5
2785
by: Nasif | last post by:
Hello All I am currently doing a project on MS SQL Server 2005 where I am in need of table level backup/restore. I know about FILEGROUP. But in our project using FILEGROUP is not feasible. As far as I know MS SQL Server 2005 does not support Table level restore directly. Moreover relational integrity is also matter. Is there any clever trick or 3rd party free software to do table level restore/backup? Please Help.
0
1035
by: AQSAPFI | last post by:
Hi, I have a problem restoring a Read-Only filegroup in a database. I've restored the Read/Write filegroups first without any problem. Then, I am able to recover Read-Only filegroups which do not contain fulltext indexes with the command : RESTORE DATABASE GSM FILEGROUP = 'FG_RO_20080214' WITH RECOVERY However, for filegroups containing FullText indexes (Fulltext indexes are in the same filegroup as data used for this index), I...
0
8794
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9483
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9341
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9269
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9211
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6756
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4572
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2195
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.