Solved

Dump Transaction does not work

Posted on 1999-01-05
6
271 Views
Last Modified: 2011-04-14
The logspace of my database keep on increasing day by day.
I tried "Dump Transaction dbname with no_log" periodically with a task, but the log space does not seem to be reducing.
I also tried dbcc checktable(syslogs) and Dbcc checkdb(dbname). But still no change in the logspace, it still grows.
Well, The problem was the database had been participating in replication but the publishing was uninstalled and thus replication was removed around 15 days back.  But there were some unreplicated transactions present, this I observed using
DBCC OpenTran(DBname)
I could not bring the logspace down (I tried executing the code which I found in the Q184499. but nothing worked.)
Things started working when I started the replication again and the logspace came down to 0.001596%.
Can anybody tell me what was going on?

Rakesh
0
Comment
Question by:Rakesh010499
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Expert Comment

by:tschill120198
ID: 1092490
Two possibilities:
1) Are there any open transactions at the time the transaction is dumped?
2) Does this database participate in replication?
0
 
LVL 9

Expert Comment

by:david_levine
ID: 1092491
If you are doing a dump with no_log, why not just set the database to 'truncate log on checkpoint'? That way, after each app commits, it will truncate the log for you.

Unless I'm misunderstanding what you really want to do.

David
0
 

Author Comment

by:Rakesh010499
ID: 1092492
Edited text of question
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

Author Comment

by:Rakesh010499
ID: 1092493
Edited text of question
0
 
LVL 3

Accepted Solution

by:
Stefaan earned 0 total points
ID: 1092494
Why not create a daily routine for that.  As far as I know, you should backup your database.  Backing up your database will commit all transactions to the database and free the the transaction log.

When making changes to the database, the changes arn't processed immediately but create an entry in the transaction log.  By running the maintenace wizard, you can set up a maintenance plan.  I did it that way and created a daily maintenance plan which backs up my database, thus committing all transactions everyday.  The result is that each day I have an (almost) empty transaction log.

Try it out, you'll see that it works.


0
 

Author Comment

by:Rakesh010499
ID: 1092495
Stefaan,
Thanks for your answer. Since the database was involved in replication,with a separate machine which is solely dedicated for replcation, I think there was no neccessity to take a backup of the datbase. also, when the database is participating in replication the transaction log of that database will not be cleared unless and until all the transaction are read by the logreader task.
I will try your suggestion and let you know ASAP.
Thanks
Rakesh  
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question