SQL Database Configure

ajayjain
Member Posts: 119
Hi Just need some advice before I make any changes on my database
NAN 4.03 on SQL 2005 with 250 users and db size is 500 gb
Currently database is on Auto-grow - Should i change it to manual ?
Database is 95% full, should it be something between 70-80% ?
Navision Security is Enhanced - Should it be Standard ?
Currently NAV SQL server is restarted every sunday, should it be on monthly basis ?
Please advise
Thanks
Ajay
NAN 4.03 on SQL 2005 with 250 users and db size is 500 gb
Currently database is on Auto-grow - Should i change it to manual ?
Database is 95% full, should it be something between 70-80% ?
Navision Security is Enhanced - Should it be Standard ?
Currently NAV SQL server is restarted every sunday, should it be on monthly basis ?
Please advise
Thanks
Ajay
Ajay Jain
UK
UK
0
Comments
-
ajayjain wrote:Currently database is on Auto-grow - Should i change it to manual ?ajayjain wrote:Database is 95% full, should it be something between 70-80% ?ajayjain wrote:Navision Security is Enhanced - Should it be Standard ?ajayjain wrote:Currently NAV SQL server is restarted every sunday, should it be on monthly basis ?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks very much kirki,
I tried to change my test database security to standard, it was hanging, may be it will take a long time, will try again
Not sure autogrow will trigger at 80%, will check that too.
I saw this thread, clear the cache fix the problem viewtopic.php?f=23&t=55269&hilit=DBCC
confusing me.Ajay Jain
UK0 -
ajayjain wrote:I tried to change my test database security to standard, it was hanging, may be it will take a long time, will try again
Make the users close NAV/SSMS/... to free the database so it can be put in single user mode.
If needed, you can also use "kill xxx" with xxx the ID to be killed to free the database (don't kill your session with which you try to change the security model!).ajayjain wrote:Not sure autogrow will trigger at 80%, will check that too.ajayjain wrote:Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Don't set single user mode from NAV. Do it from SSMS instead. This has two advantages. First, it will quickly give you a message if others are in the DB. Second, it allows you to force those users out.There are no bugs - only undocumented features.0
-
Adequate free space must be maintained in the NAV SQL database. A good rule-of-thumb is to maintain free space of between 20% and 40% of total database size. The exact percentage can be adjusted depending on specific database size and growth patterns. My practice with larger databases is to expand once a year and add enough space to handle the estimated growth for the next year. Plus a bit for a safety net. When the free space drops below 20% expand the data file (*.ndf) to bring the free space to 40%. Repeat the process when it drops below 20%.
Do not rely on Auto-Grow to expand data and transaction log files. Auto-Grow should only be considered a safety net. It is there in case an unexpectedly large process suddenly consumes the available file space. Watch the available space and expand manually during low system activity. Avoid expanding in small increments as this will fragment the file on the drive.
Auto-Grow runs when the free space reaches 0% not as it approaches 0%. It does not say “I’m running out of space. Let me create more before it’s all gone”. What it says is “Oh darn! I ran out of space. Let me take over the system and create some more.”. Unfortunately, it does effectively “take over” the system. While the files are being expanded the system (SQL) will not respond to users. To the users, NAV (SQL) will basically stop responding until the expansion is complete. How long depends on the server’s speed and how much expansion must be done. With larger databases it will get longer. Very large databases can effectively stop responding for several minutes. This is why you don’t depend on Auto-Grow. You want to manage the data size so Auto-Grow never runsThere are no bugs - only undocumented features.0 -
bbrown wrote:Don't set single user mode from NAV. Do it from SSMS instead. This has two advantages. First, it will quickly give you a message if others are in the DB. Second, it allows you to force those users out.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks very much , really helpfull.
I tried last night, changed to single mode, tried to change security to standard
waited for 30 mins. then gave-up, can I do it from SQL
Regards
AjayAjay Jain
UK0 -
From SQL:
-Open up SSMS
-run "sp_who2" and check who is using your database. Let the log off, kill them ("kill spid-nr").
-Once you are the only one in SSMS (if you didn't select your database, you wont even be using it). right click on your database => properties => tab options => change "Restrict Access" to "SINGLE_USER". Make sure your SSMS doesn't use the database.
-start NAV and connect to your database. Now you can change the security model.
-After changing the security model, remove the toggle "single user" in NAV (this changes the "Restrict Access" back to "MULTIPLE_USERS").Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi Kirki,
I have done all these but when I change the security model from navision it is taking loooong time
Last time I waited more than 30 mins., so I had to kill my session, not sure how long it takes to change the security model.
next time i will try and wait atleast 1 hr.
I think we cannot change the security model from SSMS
AjayAjay Jain
UK0 -
It depends how many companies and tables you have in the database.
It can take a long time but once you have it, you don't need to worry anymore about synchronizing.
it CANNOT be done using SQL because it is a NAV-thingy.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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