SQL maintenance plan
garak
Member Posts: 3,263
Hy,
how looks your maintenance plan on sql server for navision.
I've activated:
Steps: (every Day at 04:00)
1. sp_defragdatabase DATABSE
2. sp_updatestats
They are more jobs i must activate :?:
What is with empty records in SIFT Tables :?:
Regards
how looks your maintenance plan on sql server for navision.
I've activated:
Steps: (every Day at 04:00)
1. sp_defragdatabase DATABSE
2. sp_updatestats
They are more jobs i must activate :?:
What is with empty records in SIFT Tables :?:
Regards
Do you make it right, it works too!
0
Comments
-
garak wrote:Hy,
how looks your maintenance plan on sql server for navision.
I've activated:
Steps: (every Day at 04:00)
1. sp_defragdatabase DATABSE
2. sp_updatestats
They are more jobs i must activate :?:
What is with empty records in SIFT Tables:?:
RegardsDo you make it right, it works too!0 -
I prefer to script these at the table level, as not very table needs to have indexes and stats rebuilt daily.There are no bugs - only undocumented features.0
-
1 - I’m guessing that DBCC DBREINDEX is equal to sp_defragdatabase.
In quite large databases it’s almost impossible to rebuild indexes every day. In some tables it’s not need to rebuild every day the indexes.
You can also shrink database if is needed
2 - From Application Desogner's Guide:
When you delete a record from a base table, the SIFT table is updated in the normal
way and all of the aggregated totals are updated. However, the record is not deleted
from the SIFT table; its corresponding totals in the SIFT table are set to zero. The
entries in the SIFT table are not removed because there is a performance benefit to
be gained for future updates by keeping them.0 -
Don't shrink the databas,e it will only expand again anyway. You should set the database files to a set volume and expend it as needed.
To get rid of the zero entries, you need to do a table optimize from within navision. File/Database/Information, click the tables button, select your tables and hit the Optimize button. This rebuilds the records in the SIFT tables.0 -
Denster this also rebuilds the keys as well.0
-
The only problem it’s that you can’t create a script in sql server to automated the SHIFT table’s optimization. I always try to create sumindex field in tables that don’t have deleted records.0
-
It is possible to script the delete of zero SIFT records in SQL, but the scripts must be updated whenever SumIndex definitions are changed. This can be a maintenance headache if constant development is being done.There are no bugs - only undocumented features.0
-
OK, you can click the optimize button. But i must update more then 50 databases. And i will not click the Button manuell (that consuming to many time).
This must do an automatic script.
All batches i will create on sql-Enterprisemanager as an job.
And i'm not sure, which jobs i need.
On every Database work 10 between 150 users. And i've only the time between 04:00am and 06:00am to do something. Before and after this time there are batches in navision (NAS) or the users work.
And i will not disturb the users by her work (than they shout
)
So, i need all jobs for sql-enterprisemanag. to optimize the database.
Regards.Do you make it right, it works too!0 -
Updating statistics and index rebuild can be easy automated from SQL Server.
The only problem exists in SIFT tables.
When creating sumindexfields avoid tables that have many record deletion.
If you want to use the Navision Client to optimize the SIFT tables, it can be automated using a software that makes Automation of key strokes.0 -
Is that 50 databases or 50 companies?
Reindexing is an offline operation (SQL 2000) and your 2 hour window is somewhat small. One option is to reorganize indexes that have less fragmentation rather than rebuilding them. Reorganizing an index can be done online. A general rule is to reorganize if fragmentation is between 5% to 30% and reindex if greater than 30%.There are no bugs - only undocumented features.0 -
50 databases with one between 7 companys. In future there are more databases. 2- 4 databASES are stored on an Server. So we have a lot of servers where i must implemet the maint. plan. And i will not use navsion with key strokes to optimize the client.
RegardsDo you make it right, it works too!0 -
That must be a rather expensive software license (and maintenance cost)?There are no bugs - only undocumented features.0
-
I had created such routine that can be run from navision. you create a table and fill in the records you want to optemize and run the form. It will then automate the keystrokes.
http://www.mibuso.com/forum/viewtopic.php?t=10331&highlight=optemize0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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

