SQL restore error in NAV 6.0 SP1

cveale
Member Posts: 135
Now for starters, I am not very good in SQL, but I was restoring a NAV backup in SQL, and this error message came up.
The following SQL Server error or errors occurred when accessing the Value Entry table.
Could not allocate space in the database because the 'Data Filegroup 1' filegroup is full. Does this just mean I don't have enough room on my laptop or does it mean I don't have enough room in a certain directory/folder on my laptop ?
how do I find out wether Data Filegroup 1 is full ?
Thanks.
The following SQL Server error or errors occurred when accessing the Value Entry table.
Could not allocate space in the database because the 'Data Filegroup 1' filegroup is full. Does this just mean I don't have enough room on my laptop or does it mean I don't have enough room in a certain directory/folder on my laptop ?
how do I find out wether Data Filegroup 1 is full ?
Thanks.
0
Comments
-
Which version of SQL do you use?
Open the SQL Management Studio and check your datafiles size and also your available hard disk space...
Give us some more info on your setup.0 -
I am using SQL 2005.
Okay, I just checked out the data files, the sizes are....
mdf = 40 MB
ndf = 10612 MB
ldf = 17218 MB
I only have 25 gig left on my computer. I think I found out why the error message came up. I thought the DB was only going to be 15 GIG. The database in a native NAV database is 15 gig, so I assumed it would be 15 gig once I restored it into SQL, but it tooks to be about twice the size in SQL.
Question, do you have a NAV/SQL install cheat sheet for implementing NAV on SQL ? For instance, putting the log files of different directories ? any default settings to check ?
Thanks in advance !!0 -
cveale wrote:Question, do you have a NAV/SQL install cheat sheet for implementing NAV on SQL ?
Yes... It's www.mibuso.com It's packed with info.
Are you talking about a test environment or a Productive System for the client? There are many things to consider. For instance, log files should be on a separate physical disk. But usually this is done by the IT department, and since you are not that comfortable with SQL Server then you should ask for assistance.0 -
cveale wrote:I am using SQL 2005.
Okay, I just checked out the data files, the sizes are....
mdf = 40 MB
ndf = 10612 MB
ldf = 17218 MB
I only have 25 gig left on my computer. I think I found out why the error message came up. I thought the DB was only going to be 15 GIG. The database in a native NAV database is 15 gig, so I assumed it would be 15 gig once I restored it into SQL, but it tooks to be about twice the size in SQL.
Question, do you have a NAV/SQL install cheat sheet for implementing NAV on SQL ? For instance, putting the log files of different directories ? any default settings to check ?
Thanks in advance !!
Most of the space your DB is using is for the ldf file, but this space is only needed during the restore, once the restore is completed the log can be shrunk and the database is normally less that three times the size of the FBK files, like the Native DB and unlike the Naive DB you can shrink it to fit the data. Note: If the database isn't using "Simple" model the transaction log will have to be backed up before the ldf file can be shrunk. You may also need to 'CHECKPOINT' before you can shrink the log file all the way.
If you need to restore into limited space first thing you should try is to find some more temp space for the log file on another drive, even a USB drive (commits are very rare during the restore), once done you can shrink the log, detach the database, move the log file and reattach the database in it's new location.
Second possibility is to do the restore to SQL on a big machine and do an SQL backup on that machine to restore to the limited space machine. An SQL restore needs no additional temp space, but the location the BAK file is stored in needs to be accessible to the user that the SQL service is running as.
The third option is to- Create the database in simple mode
- When the restore fails, shrink the log file
- Select file, database, restore again and when it asks continue the restore; if it doesn't ask this won't work.
- Repeat until the restore completes.
- Do a final shrink of the logfile to 2MB, then expand it to the correct size.
In fact you should do (5) whichever option you use so there aren't too many virtual log files.
Also, it's normally best to preallocate the SQL database files, but for this restore I would suggest you allow auto expand with a size of about 20-30% the total size of the FBK files (on the ndf and ldf files) . Your database will (of course) be fragmented after this, but it should be a few large chunks, so not too bad.
BTW: viewtopic.php?f=23&t=17082
Once last point, shrinking the ndf file (with 'reorganise data') after an fbk restore is likely to reduce performance. But normal laptop drives aren't that fast anyway.Robert de Bath
TVision Technology Ltd0
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