Log File in SQL Server

ssingla
Member Posts: 2,973
Dear Friends,
One of the client is running Navision on SQL server. Change log is activated and the size of the log has become very large. Client require that the log file should increase upto a particular size and after that it deletes the old entries while creating new entries so that the file size remains the same.
Is it possible ?????
One of the client is running Navision on SQL server. Change log is activated and the size of the log has become very large. Client require that the log file should increase upto a particular size and after that it deletes the old entries while creating new entries so that the file size remains the same.
Is it possible ?????
CA Sandeep Singla
http://ssdynamics.co.in
http://ssdynamics.co.in
0
Comments
-
You need to understand how the transaction log works and for what it is used. Without that basic knowledge it is hard to answer you (or it is easy but not correct...). If someone is using transaction log, it means that he want to have possibility to restore database in case of corruption to the time of the corruption. In this case, you need to have good backup schedule to prevent TR. log to grow. If you are not backing up the tr. log, it will grow and grow and grow... 8)
result of all about tr. log is: you need to have good backup schedule when using full recovery mode (e.g. 1/week full backup, 1/day differencial backup, 1/ hour tr. log backup). Else simple recovery mode is enough for you and you can create the backup e.g. daily...0 -
Hi Sandeep
I belive you are not talking about the SQL Server Transaction Log File(ldf). Instead this is realted to Change Log functionality in Navision database.
First solution would be to convince the client to delete the Change Log Entries manually by running the batch Job Delete Change Log Entries in GL > Periodic Activities. The Client can put the filter for date and time and delete the records for last 6 month or 1 month.
Second solution would be to write the customisation to automatically run the report on a periodic basis. The Frequency should be specified on GL Setup so the report run automatically on Weekly/Monthly/Yearly as per the client preferences.
I hope it should help you.
Best Regards
Mukesh0 -
mukesve wrote:Hi Sandeep
I belive you are not talking about the SQL Server Transaction Log File(ldf). Instead this is realted to Change Log functionality in Navision database.Client require that the log file0 -
Dear Friends,
Thanks for your prompt reply. Yes this is LDF file. i have no idea what it is doing and what is the significance of it. My techie is out on leave and I am stranded here.CA Sandeep Singla
http://ssdynamics.co.in0 -
For more info I recommend to find the topic "Transaction Log" in books on-line for MS SQL or on msdn pages (e.g. http://msdn2.microsoft.com/en-us/library/ms345419.aspx). I know, it is technical, but if your techie is not accessible...0
-
You can back up and shrink your transaction log file more frequently.
Also, if you put your recovery model to simple. Then, it won't keep track of the transactions --> I don't recommend this! [-X
Indeed ... understand what the Transaction Log file is for ... .0 -
Run a complete database backup, that should truncate the TL. If that doesn't do it, run a transaction log backup. Read books online for settings.
By the way, Books Online is the online help that gets installed with SQL Server, so you will want to use the SQL Server computer to browse it, or install SQL Server on your machine. You can also go to msdn online through the Microsoft website for access to books online. Search the MSFT website for SQL Server.0 -
Thanks Experts, I will try to do whatever I can. Will come back to u in case of some problem. Meanwhile I hope my techie returns back soon [-o< [-o<CA Sandeep Singla
http://ssdynamics.co.in0 -
[Topic moved from Navision forum to SQL General forum]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