Putting seperate company data into seperate .ndf files

Cem_Karaer
Member Posts: 281
Hello,
Is there any way for putting seperate company data into seperate .ndf files? (SQL Server secondary data files)
Is there any way for putting seperate company data into seperate .ndf files? (SQL Server secondary data files)
Cem Karaer @ Pargesoft
Dynamics NAV Developer since 2005
Dynamics NAV Developer since 2005
0
Comments
-
Only by modifying that property manually (or with some script) from SSMS. Why would you want to do that?0
-
My main purpose is backing-up companies' data separately. For example if any error occurs in one company, I want to restore this company's data only. Also it is highly probable that the single .ndf will bloat very quickly to hundreds of gigabytes (within only 5 months of active work, it mounted up to 15 GB!). Spliting the fatty single file into meaningful pieces will also boost performance with proper harddisk usage, I think.Cem Karaer @ Pargesoft
Dynamics NAV Developer since 20050 -
That the performance will go up is not 100%... one company per disc can be slower than data distributed between discs...0
-
Do you have any maintenance on your database? Backups? Reindexing? Is the data file growing more quickly? Is performance going down?
You still haven't told us what the problem is. You will not be able to back up individual companies in a way that is supported by Microsoft Dynamics NAV. To them it is either oyu back up the entire database through the SQL Server tools, or you back up individual companies through the NAV client.0 -
That would be a great feature if the NAV client supported it. If you could specify the filegroup when adding a new database file (File - Database - Alter) and then specify the filegroup when creating a new company.
Since SQL supports filegroup backups it would let you backup the companies that are in a single filegroup. Filegroups can be placed on different drive set based on that company's needs. Also the filegroups for larger companies could be split to multiple files.
The limitation is that Navision (Object Designer) will create all tables in the default filegroup. Until that changes this is rather impractical to implement in NAV.There are no bugs - only undocumented features.0 -
And what you will do with the Tables which are not PerCompany during that backup/restore? Do not forget that they can make the database inconsistent if you restore just one company and in the shared table are some entries created from both companies...0
-
Thank you for all of your comments. There is no particular problem for now. I just only wanted to do something as a precausion. But your experience shows that putting several companies' data into seperate SQL data files is a sweet day dreamCem Karaer @ Pargesoft
Dynamics NAV Developer since 20050 -
kine wrote:And what you will do with the Tables which are not PerCompany during that backup/restore? Do not forget that they can make the database inconsistent if you restore just one company and in the shared table are some entries created from both companies...
What data would be in a shared table that applied to only one company?
The shared (not PerCompany) tables are already in a their own filegroup. The additional file groups would contain only company specific data.There are no bugs - only undocumented features.0
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