I have a SQL server database with 5 filegroups i want to backup 2 filegroups(one contains filestream)only and restore them to different existing database.
Restore filegroup to different database
2.5k Views Asked by Hossam Elsagheer At
1
There are 1 best solutions below
Related Questions in SQL-SERVER
- SQL server not returning all rows
- Big data with spatial queries/indexing
- Conditional null constraint on Null
- SQL Query - Order by String (which contains number and chars)
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Dynamics CRM Publishing Customizations - Multi Developers
- Is there anyway to set the relationship of many tables from Model?
- Implementation of Rank and Dense Rank in MySQL
- ORM Code First versa Database First in Production
- MVC : Insert data to two tables
- Data streams in case of Merge
- table with multiple IDs but seperate notes need sorting (Tried SQL code to make a union query)
- SQL table Partitioning by Year with ColumnStore index implemented on the table
- Defining which network to use for SQL Server 2012 Management Studio
- Fill a week days in a table with preceding Sundays value
Related Questions in BACKUP
- Need to create a simple script for ftp login
- Backup strategy for build tool hosted on Azure VM
- Error with Data Pipeline backup when I transfer my data from DynamoDb to S3
- Tablesnap not working
- Can WebDeploy Backup on Application Level Not the Whole Site?
- Cassandra restore from incremental backup files from multilple nodes
- How to avoid "use <database>" statement on mysqldump backups?
- Bash output limited to echo only
- Batch file to delete all folders in a directory except the newest folder
- CentOS6 - Backup all RPMs and installed programs
- Tar backup error
- What is the best file format to save dynamoDB table?
- Creating Backup and Restore where the Executable path in vb.net
- Daily and weekly backup strategies
- iOS Enable backup for file ONLY IF backup is encrypted
Related Questions in RESTORE
- Cannot Restore from Backup File to Sybase
- /usr/lib/* files had been deleted, how to restore these files
- IOException when trying to restore data in BackupAgent in chunks instead of all at once
- MvvmCross on iOS - Strategies for Saving and Restoring State
- Cassandra restore from incremental backup files from multilple nodes
- Restore a minimised application via VBS within an HTA
- CentOS6 - Backup all RPMs and installed programs
- Creating Backup and Restore where the Executable path in vb.net
- How do I display a folder that exists in the file system, but not in Eclipse
- Revert to state before installing a bower component
- Restore deleted files
- Lack of restore function for in-app purchase causes rejection
- How to dump data from file in MongoDB 3.0.3 with WiredTiger
- cpanel full account restoration without whm access
- restore window to specific locaiton on screen c# (console application)
Related Questions in FILEGROUP
- How to use a relative file path when adding a file to MSSQL database
- SQL Server: Bulk Insert Data Loading to Partitioned Table with Multiple File Groups
- Delete Filegroup and File from database
- Restore filegroup to different database
- SQL Server: changing the filegroup of an index (which is also a PK)
- What file is my sql table stored in?
- How to find type and size of content of a filegroup in SQL server?
- How to create indexs on a different file of Filegroup
- Is there any bad affect on heavy queries on tables that are placed in different filegroups?
- Enabling filegroup in SQL Server Management Studio
- How to handle melon of record in SQL server
- How to append filegroup dynamically while creating an index in SQL Server?
- Piecemeal restore of database with filstream filegroups
- Why do we need secondary data files in SQL Server?
- SQL Server filegroup full during a large INSERT INTO statement
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What you are asking about is Piecemeal Restores (SQL Server)
You can restore
primary+ allreadwritefg + any ofreadonlyfilegroups in you are insimplerecovery model or you can restoreprimary+ any other filegroup(s) if you are infullrecovery model.As the first filegroup to restore is always
primaryfilegroup, it will replace your "different existing database" primary data file and log (in yourrestorecommand you should usewith movethat points to your existing mdf + log files) and every subsequent restore will overwrite other files, there will remain nothing from your "existing" database, so there is no sense to restore to a "different existing database": you will be able to bring online only the filegroups you are restored and the database will know nothing about remaining files of "existing database". So it's just the same as to restore to just another(non existing) database.Here is the restore sequence example for
primary+readonly fginsimplerecovery model Example: Piecemeal Restore of Only Some Filegroups (Simple Recovery Model)And here is the example for
fullrecovery model Example: Piecemeal Restore of Only Some Filegroups (Full Recovery Model)