SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 clearing the transactionlog
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

funketekun
Constraint Violating Yak Guru

Australia
491 Posts

Posted - 08/30/2007 :  11:33:55  Show Profile  Visit funketekun's Homepage  Reply with Quote
jen,
how do you find the uncommitted transactions? The database is in simple recovery model

=============================
http://www.sqlserverstudy.com

Edited by - funketekun on 08/30/2007 11:34:26
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 08/31/2007 :  00:23:55  Show Profile  Reply with Quote
Try with 'dbcc opentran'.
Go to Top of Page

rick_nica
Starting Member

Nicaragua
1 Posts

Posted - 10/01/2014 :  16:15:53  Show Profile  Reply with Quote
Hi!,

This happens cause you have your database set on FULL RECOVERY MODE and you're not backing TRANSACTION LOG up. (This works on SQL 2012)

Follow this steps:
-------------------
0- DO A FULL BACKUP FIRST!!!!

1 - Check your Database/Log file name

use YourDatabaseName
exec sp_helpfile -- This will give you the file structure of your DB

2 - Changing recovery model to SIMPLE.

ALTER DATABASE YourDatabaseName
SET RECOVERY SIMPLE;
GO

3 - Shrink the truncated log file to its minimum size.

DBCC SHRINKFILE (YourLOGfilename) -- Obtained in step 1.
GO

4 - Reset the database recovery model to FULL (IF YOU'RE GONNA START USING IT).

ALTER DATABASE YourDatabaseName
SET RECOVERY FULL;
GO


... Hope it helps!
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000