Solved

SQL Backup skipping a few tables

Posted on 2016-11-03
7
62 Views
Last Modified: 2016-11-15
I've got a Microsoft CRM database that I need to work with in order to prep for a data conversion to our new internal software.

However, this database is 40GB and it's problematic for me to get fresh copies of it from production.  That being said, there are 2 tables that are 30GB in size, just blobs that I don't need.  Can I run a backup into a .bak and exclude those from being exported?  (This is SQL2005 fyi)
0
Comment
Question by:Dustin Saunders
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 50

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 500 total points
ID: 41872390
Can I run a backup into a .bak and exclude those from being exported?  
What do you mean exclude them from being exported? A backup takes all tables so you can't exclude tables from a backup.
But if you have the database with more than one filegroup and have a filegroup only for those 2 tables you can backup the filegroup that you need and restore it after so you're excluding the filegroup with the 2 tables inside.
0
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 41872398
Do you need the up to the minute copy, or can you get the backup that (hopefully) occurs on schedule (nightly / hourly)?
0
 
LVL 13

Author Comment

by:Dustin Saunders
ID: 41872407
I just need to grab a copy every now and then, but waiting for the 40GB file to move to my dev environment takes a lot of time.

I'll need to write and test the SQL queries that will be used when we do the Go Live on the new software (so I will need to pull a fresh copy on that day too).  I'm thinking at this point my best bet is going to be to copy this database to a new one, skipping those tables, and then grabbing that .bak
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 50

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 41872421
You can also create a snapshot replication and filter out those 2 tables from the replication.
0
 
LVL 13

Author Closing Comment

by:Dustin Saunders
ID: 41888007
I ended up created a new database with just the tables I needed, then backing that up-- but both of these posts contain good information on how to accomplish this in another way.
0
 
LVL 50

Expert Comment

by:Vitor Montalvão
ID: 41888012
How do you keep those tables up to dated?
0
 
LVL 13

Author Comment

by:Dustin Saunders
ID: 41888035
I don't, but I don't have a need to.

As mentioned, I'm doing a data conversion from our existing database into our new system so I just need a dummy copy of the database to write the data conversion SQL; so I just needed to be able to play with the data structure, test for conversion errors, etc.

On go-live day, I'll run the data conversion against the actual production database.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VM SQL server license. 1 67
how to use ROW_NUMBER() correctly 8 44
Delete duplicates from SQL Server table 2 27
VB.Net CLR Assembly type Datatable into SQL 8 24
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question