Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 active transactions

Author  Topic 

cjsteury2
Starting Member

14 Posts

Posted - 2009-11-15 : 19:00:38
As I mentioned in previous post I am trying to create an index on a table with existing data... but now I have another issue.. it says that

The transaction log for database 'TEST' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

When I use this commmand select * from sys.dm_tran_active_transactions

There are 20 transactions:

155 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
159 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
161 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
163 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
167 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
171 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
175 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
179 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
183 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
185 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
188 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
190 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
194 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
198 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
202 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
206 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
208 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
210 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
212 worktable 2009-11-15 16:48:47.593 2 NULL 2 0 0 0 0 0
17261 SELECT 2009-11-15 18:00:57.020 2 NULL 2 0 0 0 0 0


HOW DO I KILL THESE TRANSACTIONS AND OR OVDECOME THIS ISSUE IF THIS IS THE REASON I CAN NOT ADD THE ID COLUMN IDENTITY NOT NULL TO MY TABLE???

Craig

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-11-15 : 22:19:24
are u out of disk space? what is log file restricted to?
Go to Top of Page

cjsteury2
Starting Member

14 Posts

Posted - 2009-11-16 : 07:29:13
quote:
Originally posted by russell

are u out of disk space? what is log file restricted to?



1. No I am not out of diskspace. I have 200 GB available and have used hardly any.

2. I don't know how to answer that second question... restricted to? To my knowledge there are no 'restrictions'.
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-11-16 : 08:53:54
in the object explorer, right click the database, then click properties, then click files. look to see what log file is restricted to.

also what recovery model is db in?
Go to Top of Page

cjsteury2
Starting Member

14 Posts

Posted - 2009-11-16 : 17:18:56
quote:
Originally posted by russell

in the object explorer, right click the database, then click properties, then click files. look to see what log file is restricted to.

also what recovery model is db in?



Russell, It is restricted to 66mb is it 52 mb it says it has never been backed up. I have tried Full backup recently but it apparently did not back Log, before that I think it was simple, but it's FULL now for recover model.
I can't really do anything with tables and their is 1 open transaction.

When I do this...
SELECT [name], recovery_model_desc, log_reuse_wait_desc
FROM sys.databases;
I get this...

master SIMPLE NOTHING
tempdb SIMPLE NOTHING
model FULL NOTHING
msdb SIMPLE NOTHING
TIMBER FULL NOTHING
VTRADE FULL LOG_BACKUP
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-16 : 17:46:42
If you are running FULL recovery model, then you need to perform regular tlog backups. If you don't plan on doing that, then switch to SIMPLE recovery model.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -