Backup Query

vikram7_dabas
Member Posts: 611
Dear concern
I m using NAV 4.0 SP3 SQL DB.I m taking Backup,i want while taking backup through Navision, data of 1 table (say,Table ID 405) should not come in Backup.Can we do this.Is it possible guys?
I m using NAV 4.0 SP3 SQL DB.I m taking Backup,i want while taking backup through Navision, data of 1 table (say,Table ID 405) should not come in Backup.Can we do this.Is it possible guys?
Vikram Dabas
Navision Technical Consultant
Navision Technical Consultant
0
Comments
-
Not out-of-the-box.
Actually you need to move the separated tables into a new Filegroup; then you could create FG Backups, excluding the tables/FG you don't want to save.
But caution: depending on the tables you skip, you might jeopardize the data-integrity in case of a restore of such an "incomplete" backup!Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
stryk wrote:Not out-of-the-box.
Actually you need to move the separated tables into a new Filegroup; then you could create FG Backups, excluding the tables/FG you don't want to save.
But caution: depending on the tables you skip, you might jeopardize the data-integrity in case of a restore of such an "incomplete" backup!
How can I move the separated tables into a new Filegroup, and what do u mena by FG Backups.How can I take these backups?Vikram Dabas
Navision Technical Consultant0 -
Again, technically this is possible, but practically not recommended. In cases of T405 "Change Log Entry" this is probably pretty fail-safe, but with other tables you might raise a problem.
The general proceeding could be like this (all to be done in Management Studio using TSQL):
- Create new FG and DB file in new FG
- DROP all Non-Clustered Indexes (NCI)
- DROP Clustered Index (CI) using the MOVE TO clause to move the data into the new FG
- re-CREATE all in NCI in new FG
Then you could create FG Backups, only saving FGG "PRIMARY" and "Data Filegroup 1"
See SQL Server "Books Online" about details.Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thanxs.Is it possible through NAV,because my Database is in Native.Vikram Dabas
Navision Technical Consultant0 -
vikram7_dabas wrote:I m using NAV 4.0 SP3 SQL DB.
No, not a chance with C/SIDE Server.Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
You could copy your database, delete all data in table 405 in the copied database and make a backup. But that's only a one time solution, not for daily backups. And as mentioned this doesn't work or is very risky for other tables."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
The main question is why?
If this is not a one-time task then instead of skipping the table during backup, you could simply empty it. If you have permissions to do that, and you don't want to keep the information then why keep it? Empty it and set it up correctly so that it doesn't store too much info (if your problem is the number of entries).0 -
kapamarou wrote:The main question is why?
Indeed! Just a good guess:
They are logging way too much, this "Change Log Entry" is a sort of "table monster", wasting precious disk-space, also with the backups.
Just this week I've worked on a database of 17GB net size; and alone T405 used 8GB!
So I agree, the preferred steps should be:
- review the Change Log setup; only logging what's really necessary
- delete old data periodicallyJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
I hesitate to suggest this, but change log is one of those tables that it's possible to put into 'DataPerCompany=No' . If it's not in a company they it won't be saved in a company backup ...
Just saying.Robert de Bath
TVision Technology Ltd0 -
vikram7_dabas wrote:Dear concern
I m using NAV 4.0 SP3 SQL DB.I m taking Backup,i want while taking backup through Navision, data of 1 table (say,Table ID 405) should not come in Backup.Can we do this.Is it possible guys?
Take a look at report 510 it does what you need.David Singleton0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions