Solved

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

Posted on 2004-09-17
7
289 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
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 42

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Table where row act as column 11 68
find SQL job run average duration 24 53
SQL Server Sum Over Multiple Tables 20 30
T-SQL: Need Group By to use "fuzzy logic"?? 3 11
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

740 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