Solved

Dow can i delete records without creating a entry in transaction log

Posted on 2004-09-17
7
292 Views
Last Modified: 2010-08-05
I have a DB server which is almost out of space and i need to delete some data / rows in a large table to make space.
my problem is that when i try to delete the row the system is trying to write to the translog but there is no more space to grow it.

is there a way to temp disable any logging while i delete the records ? Or any othere way to make this happen ?
0
Comment
Question by:AlexPonnath
[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
7 Comments
 
LVL 10

Accepted Solution

by:
Jay Toops earned 300 total points
ID: 12085628
change your logmode to simple
THEN ..
if it still wont do that transaction
you will have to delete a FEW records at a time like
delete from MYTABLE where id > 1 and id < 1000

OR

simply add annother LOGFILE in the database setup
you could EVEN use a network drive if your desperate..
of course this will be VERY slow

JAY
0
 
LVL 10

Expert Comment

by:imrancs
ID: 12085754
if you are deleting all the record from the table then you have another option; you can use TRUNCATE TABLE <tablName>. TRUNCATE is not a logged operation.


Imran
0
 
LVL 43

Expert Comment

by:Eugene Z
ID: 12086737
TRUNCATE table as imrancs  told is the answer
additionally if it is sql server 2000
you cab try to chenge recovery mode to simple recovery mode

 simple recovery mode does is, it truncates the log
each time SQL Server performs a checkpoint

0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:AlexPonnath
ID: 12086972
that does not help, i can not dump the whole table and and doing simple has no impact, when i delete more then 200 K rows it fails becaus
of log is full....
0
 
LVL 10

Expert Comment

by:Jay Toops
ID: 12087033
THEN ..
if it still wont do that transaction
you will have to delete a FEW records at a time like
delete from MYTABLE where id > 1 and id < 1000
or by some other column that you can slice the table up into pieces with

JAY
0
 
LVL 6

Assisted Solution

by:mcp111
mcp111 earned 200 total points
ID: 12087077
You could also try dbcc shrinkdatabase
0
 
LVL 10

Expert Comment

by:Jay Toops
ID: 12108706
did this work .. ??

did u get to try it?

JAY
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

734 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