?
Solved

Dump Transaction does not work

Posted on 1999-01-05
6
Medium Priority
?
279 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
Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

 

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

764 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