Filegroup Backup

Jul 21, 2000

Is it possible to back up one filegroup independently from the second when tables
in one group have foreign key relationships with tables in the second group?

View 1 Replies


ADVERTISEMENT

Help Please - Backup FileGroup And Restore

Jul 23, 2005

SQL 2000I have server1 with two filegroups.I want to backup FileGroup Primary on Server1 and Primary has aphysical file called MyData.mdf.I have server2 with the same database and two filegroups BUT thePhysical names are different. The Primary FileGroup is in physical fileOurData.mdfHow can I get server1->MyData.mdf to Server2->OurData.mdfThanks !

View 1 Replies View Related

SQL 2012 :: Ignore One Filegroup From Backup

Sep 3, 2014

My intention is to make a copy of a database with some data excluded. One way to do this:

- Make a copy-only backup of the source database
- Restore the backup as a new database
- Delete undesired data from the new database

In my case, the source database has two file groups, primary and secondary. The secondary has just one table with huge amount of data and this file group appears as one physical file. Is there any way to make a partial backup, which does not include this file group or table, and it would still be possible to restore the backup to a new database? My point is to avoid copying huge amount of data if it won't be needed.

View 2 Replies View Related

Partial Backup/Restore Filegroup Synchronization

Jun 4, 2008

Our current application which is deployed to numerous client sites usually requires the database to be returned to us to upgrade for the next release. The current process is:

- Perform a full backup at the client site
- Send the backup to us for upgrade
- Perform a full restore process to our local db server
- Modify the database
- Perform a full backup
- Send the backup to the client
- Perform a full restore over the original database.

This has served our purposes so far, however, we are about to introduce functionality that will enable the client to upload files for storing in the database.

To manage this we have a single DBFiles table which due to the potential size of it’s contents we determined that it would be best to store it in it’s own FileGroup. The idea being that then we could backup just the Primary FileGroup for returning to our offices as the DBFiles table would remain untouched.

The proposed process would now be:

- Perform a partial backup of the primary filegroup at the client site
- Perform a partial backup of the DBFiles filegroup at the client site. This only ever stays at the client site and is never restored at our office.
- Send the primary filegroup backup to our office for upgrade
- Perform a partial restore or the primary filegroup to our local db server. This will leave the DBFiles filegroup offline which is OK as we do not need to change it.
- Modify the database
- Perform a partial backup of the primary filegroup
- Send the partial backup to the client
- Perform a partial restore of the primary filegroup over the original database. This will leave the DBFiles filegroup offline.
- Perform a partial restore of the DBFiles filegroup over the original database.

This last step results in the recovery failing due to a reason like “The roll forward start point is now at log sequence number (LSN) 66787000000001800001. Additional roll forward past LSN 66787000000008900001 is required to complete the restore sequence�.

I have tried a number of variations including backing up both the client and local log files for recovery and using copy_only but I have yet to be able to successfully complete the process. Is there a means we can synchronize these 2 backup files without worrying about the logs for this part of the process?

Our requirements are basically to be able to perform a partial backup and exclude the DBFiles table as it is likely to be very large so we can send it back to our offices for upgrade and then return it to the client for restoring back to the original database while maintaining the data in the clients DBFiles filegroup and table.

Any guidance on what we need to change or a better process would be appreciated.

View 3 Replies View Related

The Backup Of The File Or Filegroup &"sysft_ftcat_d

Oct 26, 2007

hello,

my full backup job failed and it's giving me the below error message on the backup job for MSCRM database. If I start the job manually if I remove the full-text index on the table, the job ran succesfully.

The backup of the file or filegroup "sysft_ftcat_documentindex" is not permitted because it is not online. BACKUP can be performed by using the FILEGROUP or FILE clauses to restrict the selection to include only online data. [SQLSTATE 42000] (Error 3007) BACKUP DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013)

I appreciate your help in advance!

View 1 Replies View Related

SQL 2012 :: File And Filegroup Backup Components Greyed Out

Apr 22, 2014

I am looking at the file / filegroup level backup and recovery options within SQL Server and I'm struggling with the following concept.

Books online assures me that it is possible to perform a file restore whilst the database is in the simple recovery model.

So I have set up a database with two separate file groups, a read/write primary and a read only "secondary". Each filegroup has 2 underlying data files.

I have then created a "live" customers tables within the primary filegroup and assigned my existing "archive" customers tables within the secondary filegroup.

If I try to perform a file or filegroup level backup within management studio, those options are greyed out. I can only perform a database backup.

If I switch back to the full recovery model, the options are no longer greyed out.

So my question is this, is file level backup and recovery actually supported in the simple user model, do you have to perform this task outside of management studio, or (as is likely) am I missing something crucial?

View 3 Replies View Related

Backup And Restore Of Filestream Enabled Filegroup In Server

Oct 16, 2015

I am new to DBA activities. I have a database name Sample_DB in SQL Server 2014.  

This database has below files

LogicalName FileType
FileGroup
Sample_DB_Rows   ROWS Data
PRIMARY
Sample_DB_C1 ROWS Data
Country1
Sample_DB_C2 ROWS Data
Country2
Sample_DB_Docs FILESTREAM Data
FileGroupForDoc

My database has 3 tables namely Tbl1, Tbl2 and Tbl3.

Tbl1 data stored in primary file group
Tbl2 is partitioned based on a key column CountryId and stored in respective filegroup
Tbl3 is enabled to store documents, files etc., and its data will be stored in filestream enabled filegroup.

Problem:
I need to take backup of each file group separately.
I need to restore the backed up file group separately. Is this possible, how to do it.

View 3 Replies View Related

Error: The Backup Of The File Or Filegroup Sysft_XXXX_FT Is Not Permitted Because It Is Not Online

Aug 22, 2006

Hi There,

I am trying to do a full back up of a user database which has full text indexing on it. I use the maintenance plan wizard to set up a full backup. For some reason, I get this error.

=================

Executing the query "BACKUP DATABASE [XXXX] TO [XXXX]
WITH NOFORMAT, NOINIT, NAME = N'XXXX_backup_20060819040020', SKIP, REWIND, NOUNLOAD, STATS = 10
" failed with the following error:
"The backup of the file or filegroup "sysft_XXXX_FT" is not permitted because it is not online.
BACKUP can be performed by using the FILEGROUP or FILE clauses
to restrict the selection to include only online data.
BACKUP DATABASE is terminating abnormally.".
Possible failure reasons: Problems with the query,
"ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

===============

Can anybody please suggest me what I should do?

Thanks.

View 19 Replies View Related

BACKUP LOG Cannot Be Performed Because There Is No Current Database Backup. BACKUP LOG Is Terminating Abnormally.

Jan 31, 2008



Hi there

I'm getting this message on my third automated backup of the transaction logs of the day. Both databases are in full recovery mode, both successfully backed up at 01.00. The transaction logs backed up perfectly happily at 01:30 and 05:30, but failed at 09:30.

The only difference between 05:30 and 09:30's backups is that the log files were shrunk at 08:15 (the databases in question are the ones that sit under ILM2007, and keeping the log files small keeps the system running better).


Is it possible that shrinking the log files causes the database to think that there hasn't been a full database backup?

Thanks

Jane

View 3 Replies View Related

Filegroup

Feb 22, 2001

hello,
ihave atablelike this -
z uniqueidentifier
a varchar(40)
b varchar(40)
c varchar(40)
d varchar(40)
e varchar(40)
f text
g image

I am asked to split this table into 2 filegroups and move text and images on to one and other stuff on one.
I am new to MS-SQL 7.0.
Can anyone suggest me how to go for it.
Thanking you.

View 2 Replies View Related

FileGroup

Jun 5, 2006

i understand that the filegroup for a table can be specified in the CREATE Table statement. just out of curiosity, is there any way to move a table to a different filegroup, that too, if the table contains data.

View 2 Replies View Related

FileGroup

Aug 14, 2006

Hi,
There is a table which is about 50GB is size.
I am thinking of placing the database of this table into a separate .ndf on a separate drive on the server.
Is it possible to place this particular table into a searate drive to increase the performance even more?
Basically my question is: is it possible to place tables into separate .ndf files?
Thanks

View 4 Replies View Related

Filegroup

Aug 6, 2007

Hi,
I have created a database with two filegroups called FG_GroupData, FG_GroupHistory.
FG_GroupData is set as default.
FG_GroupData contains two secondary data files i.e. GroupData1.ndf and GroupData2.ndf
I can create a table so that it is stored in FG_GroupHistory. i.e.
CREATE TABLE dbo.OrdersHistory
(
OrderID int NOT NULL,
ProductID int NOT NULL,
CustomerID int NOT NULL,
UnitPrice money NOT NULL,
OrderQty smallint NOT NULL
)
ON FG_GroupHistory
Questions:
1)
How do I add tables to each .ndf file inside a group i.e. FG_GroupData
For example, how do I add a table to GroupData1.ndf and one to GroupData2.ndf ?
2)
I guess there is no need to place the file name i.e. .ndf inside the select query
Thanks

View 3 Replies View Related

Filegroup

Aug 14, 2007

What is the advantage of having two secondary files inside a filegroup.
For example, I can create a table and place it inside a filegroup which obviously will use the secondary files.
Not sure why some DBAs create just one but otherscreate more than one secondar files in a filegroup.
I have read the booksonline but can not figure out the advantages.
Thanks

View 1 Replies View Related

Filegroup Monitoring

Jun 21, 2002

Can anyone show me in SQL7 how to obtain Available Space on a particular filegroup in a database (not the database or datafile).
I am trying to include this in a script to monitor my database which uses Filegroups and I have every other info that I need (from the sysfiles table) except the available space. Thanks in advance!

View 1 Replies View Related

What Do You Think About This(filegroup & Perfermance)

May 8, 2001

hi...
I don't know well this statement...


1. from Transcender
.....
One file for each filegroup is sufficient because creating multiple files for the same filegroup on the same disk does not provide any performance gain

2. from bol
....
Therefore, creating more files per filegroup can help increase performance because a separate thread is used to scan each file in parallel

what is correct ?
thanks !!

View 1 Replies View Related

Restore To Filegroup

Jul 21, 2000

Hi ,
I am restoring a VLDB from a Standby server which has just .mdf and .ldf to my production server which has .mdf and a file group with a single .ndf
file, i want to restore the databse on to the Secondary file(is this possible) i checked the BOl but could not figure out of what command is to be given


Any hhelp will be greatly appreciated..


Thanks in advance
Jane

View 1 Replies View Related

Remove FileGroup (what's On It?)

Mar 14, 2000

I want to remove a filegroup.

ALTER DATABASE MyDBName
REMOVE FILEGROUP MyFileGroupName


It says:
Server: Msg 5042, Level 16, State 7, Line 1
The filegroup 'MyFileGroupName' cannot be removed because it is not empty.

Question: How can I tell what is on this filegroup.
<Forgive me if it is a simple BOL answer, but I'm having trouble finding it>

View 4 Replies View Related

Removing A Filegroup

Apr 25, 2000

Hello,

A few days ago one our database's default filegroup filled up. To solve the problem one of my colleagues created a new filegroup. This didn't solve the problem as no objects were placed on this filegroup and the initial one is still full. The idea was to expand the original filegroup over a new physical disk, not to create a new filegroup on that disk. Unfortunately, this is what happened.
To solve this I want to delete the new filegroup, but when I issue the command 'alter database PvgOmcsOds remove filegroup ternary' I get the message 'Server: Msg 5042, Level 16, State 7, Line 1 The filegroup 'ternary' cannot be removed because it is not empty.' Yet there're no objects placed on this filegroup.
How can I get rid of this filegroup?

Stef

View 2 Replies View Related

How To Drop A Filegroup

Oct 19, 1999

I am managing 120 gb SQL7 database. The 120 GB is in a RAID5 (Hardware RAID). At begining, I think I should create a user defined filegroup besides Primary filegroup, as BOL suggested.

After I read some discussions here, It appears I cannot gain any performance by adding second filegroups. Now I want to drop the filegroup I created. The Question is How?. If I do alter database, move all files from userdefined filegroup, does this mean my userdefined filegroup has gone?

Someone can help me on this!

Thanks a lot.

View 1 Replies View Related

FileGroup Structures

Apr 14, 1999

I have 2 test database identical in size and table structure, only one resides on filegroups and one resides on a single file.
From everything I have heard filegroups are suppose to improve performance. I stop and start the server before each test to clean out
cache. When I run the filegroup test initially the first run averages 20 seconds slower then the database sitting on the single file. However
on consective runs there is a significant improvement in performance with filegroups verses single files. I have
the indexes sitting on a separate filegroup and 2 additional filegroups to spread the tables across. Does any one know what would be causing
the performance to degrade on the initial run of the test. (The test by the way is a stored procedure that runs a select statement against each table).

Any Info Will help Thanks
Barb

View 3 Replies View Related

Removing Filegroup

Mar 8, 2001

Hi all,

I am trying to remove one of the filegroups in the development database to shrink its size down. I started with emptying and removing its files and ran:
dbcc shrinkfile
(pubs_data_1,emptyfile)
go

and it ran fine, with 'DBCC execution completed' message

but when I tried :

alter database pubs
remove file pubs_data_1
go

I got 'pubs_data_1 cannot be removed because it is not empty'.
I even tried to go to each of the tables and delete from them first which didn't work, then drop all tables in that filegroup (I knew which tables are located on that filegroup), that didn't work either.

Any ideas? Is there a way to check what else sits on that filegroup?

Thanks

View 2 Replies View Related

New Filegroup And Log Shipping

Jan 10, 2007

We have sql 2000 server at a remote site that log ships to a standby server at the site, and back here to corporate. For performance we are adding a new RAID array to the remote servers along with a new file group for indexes. The server back here is older and we can't add this RAID. For log shipping purposes, what if anything might happen to this server when the filegroup is added. We are going to be using this filegroup for indexes

View 1 Replies View Related

How Go Relocate A Filegroup?

Sep 17, 2001

Hi, I am running out of space on one of the local drive, and I would like to move a filegroup from one
drive to another. Does anyone know how to do it?

View 1 Replies View Related

Filegroup Recommendation

Jan 15, 2004

Are there any general recommendations concerning filegroups? My personal point of view is to place large tables in their own filegroups and group smaller, more static, tables in a single filegroup. Is it also good practice to group small and large index in two separate filegroups or should each large index have their own filegroup? Are there any useful links out there concerning filegroups and configuration?

View 1 Replies View Related

Filegroup Rename?

Sep 10, 2007

Hi,

Is there a way to rename a Filegroup "FG1" to "FG2"?

For those interested, I'm trying to script a sliding window procedure for my partitioned table and rather than use dynamic SQL I'd like to always refer to the same Filegroup name (ie. "FG1").

Many thanks,
Richard.

View 1 Replies View Related

Filegroup Is Full

Feb 12, 2008

WHERE DO I FOUND THE FILEGROUP?
WHEN THIS ERROR OCCURED

Could not allocate space for object '<temporary system object: 431024047390720>' in database 'tempdb' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.

View 1 Replies View Related

C#, SQL-DMO, Add FileGroup Issue.

Jul 23, 2005

Greetings All, I was hoping that someone might be able to shed somelight on this issue. I am trying to add a FileGroup/Datafile to anexisting SQL database. The code below compile and it runs in .NETStudio, however nothing happens? The form closes, no error messagesare thrown, there is no sign of any type of error taking place. Theend result (assuming the code is correct) is tha there should be a newFileGroup with a datafile in it, here is the code:************************************************** ******************private void AddFileGroup(frmMyForm f){SQLMy.SQLServer MySQLServerName = new SQLMy.SQLServer();SQLMy.Database MyDBDbName = new SQLMy.Database();SQLMy.FileGroup MyDBDataGroup = new SQLMy.FileGroup();SQLMy.DBFile MyDBDataFile = new SQLMy.DBFile();try{MySQLServerName.ConnectmyGetConfigData.OlapServerName*,myGetConfigData.Ol apUserLogin*,myGetConfigData.OlapUserPassw*ord);MyDBDbName.Name =myConnectionData.OlapDatabaseN*ame.ToString().Trim ();MyDBDataGroup.Name = "DBDataGroup";MyDBDbName.FileGroups.Add (MyDBDataGroup);MyDBDataFile.Name = "DBData";MyDBDataFile.PhysicalName =myConnectionData.OlapDBDataPat*h.ToString().Trim() + @"DBData.ndf";MyDBDataFile.Size = 50;MyDBDataFile.MaximumSize = -1;MyDBDataFile.FileGrowth = 5;MyDBDataFile.FileGrowthType = 0;MyDBDataFile.PrimaryFile = false;MyDBDbName.FileGroups.Item("DB*DataGroup").DBFiles.Ad (MyDBDataFile);this.Close();MySQLServerName.DisConnect();}catch (Exception e){MessageBox.Show(e.Message);}finally{MySQLServerName.DisConnect();}}************************************************** ******************Note: myGetConfigData: This is a class that reads in the values for thedb connection from an XML file. This class has been tested extensivelyand the data values are being populated into the variables.I would appreciate any help that anyone might be able to provide to me.Regards, TFD.

View 14 Replies View Related

One Transaction Log Per Filegroup?

Dec 20, 2005

Is a single transaction log created for a database or, if you have aprimary and a secondary file group in that database, are twotransaction logs generated? Yep, a newbie.Thanks,Phil

View 2 Replies View Related

Space Available Within A Filegroup

Mar 4, 2006

I am using SQL Server 2000. How can I tell how much free space isavailable within a particular filegroup? What query can I run to getthis information?Thanks,Greg

View 1 Replies View Related

Filegroup And Log Backups

Jan 28, 2008

The Microsoft Course 2780A book says you can do backups using the following:
BACKUP DATABASE PhoneOrders
File = Orders2 to OrderBackup2
BACKUP LOG PhoneOrders to OrderBackupLog


but when I try this in SQL Server 2005, I get the message:
"The media set has 2 media families but only 1 are provided. All members must be provided."

I posted this on MSDN forum but didn't get much of a response. I only need/want to backup one file group out of two. The simple recovery model will not alow me to backup a single filegroup. Bulked-logged recovery mode produces log file size problems.

View 3 Replies View Related

Problems Restoring Filegroup

Apr 5, 2008

I have a backup of my PRIMARY filegroup saved as a .bak from a webserver.
I am trying to restore this to a fresh copy of my database on my local PC. The database has a PRIMARY filegroup and 1 additional filegroup - which contains READONLY data, but is not set as readonly.
First I complete a taillog backup, then I restore the PRIMARY filegroup - no problems so far. Finally I try to restore the taillog - however I get the following error. Can anyone help?  (note, I have already searched google, msdn and BOL but don't understand what I am missing) rgds MArco
Msg 4326, Level 16, State 1, Line 2The log in this backup set terminates at LSN 182000000043700001, which is too early to apply to the database. A more recent log backup that includes LSN 183000000022100001 can be restored.Msg 3013, Level 16, State 1, Line 2RESTORE LOG is terminating abnormally.
--Perform a tail-log backupuse masterbackup log mydatabaseto disk = 'C:POTail.bak'with norecovery--Restore PRIMARY filegroupuse masterrestore database mydatabasefilegroup = 'PRIMARY'from disk = 'C:PRIMARY.bak'with partial, norecovery
--Restore tail-loguse masterrestore log mydatabasefrom disk = 'C:POTail.bak'with recovery
 

View 2 Replies View Related

Reallocating Filegroup Space

Dec 13, 2001

We have allocating space for a number of filegroups in our database. We had thought the one index was going to a certain table and it actually wasn't. So, one filegroup is filling up faster than another. We want to leave the index where it is, just take away space from one filegroup and add it to another. Is this possible?
Thanks!

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved