LOG Entry

rjverma
Member Posts: 25
Hi All,
Anybody help us to stop the SQL Log entry generation, SQL Log entry become 19GB.
Anybody help us to stop the SQL Log entry generation, SQL Log entry become 19GB.
Rupesh Verma
Floor & Furnishing (I) Pvt. Ltd.
Floor & Furnishing (I) Pvt. Ltd.
0
Comments
-
Do you have Maintenance Plans like backup log / backup database ?
The SQL Log file grows, when you modify datas (delete, insert / update) and when you make a rebuild of the indexes (this could also be a maint. plan <- this you need to).
Also, when you create your backup maint. plans it is also importent to backup the system databases, because there are stored infos about the server self and all infos about the databases and more ...
The following backup strategy are recommended.
- several times on day a transactionlog backup
- at the evening a full database backup
or
- several times on day a transactionlog backup
- at the evening a different. database backup
- at the last workdate in the week a full database backup
Search the forum for Log and grow. I'm sure, you will find a lot of topics. For example in the SQL Performance or SQL General Subforum. Also read please the manuals on ToolsCD and on NAV installation CD / DVD
RegardsDo you make it right, it works too!0 -
[Topic moved from NAV/Navision to SQL General]0
-
Hi,
Just to clarify: Nobody can turn off SQL Transaction Log. SQL Server writes to Transaction Log all changes made in your database. Transaction Log grows to infinity when:
1. The database is in Full Recovery Mode and the log is not backed up or truncated OR
2. There are opened and not commited transactions (not very likely in NAV, but can happen with NAS for example)
To prevent Transaction Log from growing to infinity you have to:
1. Start doing regular backup of your transaction log (backup of the database is not enough) OR
2. Start truncating transaction log on regular basis OR
3. Switch your database to Simple recovery model OR
4. Hire someone with good SQL+NAV experience to solve your problems.
Maintenance plans (mentioned by garak) are recommended solution for point 1.
Regards,
SlawekSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
o How SQL Server writes changes to the database
When a user makes a change to the database (insert, modify, delete, etc.), the change is immediately written to the transaction log and also held in memory. Once the change is written to the transaction log, the user’s connection is released and they may continue with the next task. A SQL process then takes the changes held in memory and writes them to the disk. The transaction log is then marked to identify the changes that have been flushed to the disk.
When a server is restarted following a failure, anything in the transaction log past the last checkpoint will be the changes that were sitting in memory when the system failed. SQL Server will write these changes to the disk as part of the recovery process performed during system startup.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