Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

SQL7 help needed

Thread Tools
 
Search this Thread
 
Old May 11, 2002 | 08:35 AM
  #1  
mega_stream's Avatar
mega_stream
Thread Starter
Scooby Regular
 
Joined: May 2001
Posts: 4,580
Likes: 0
From: Scotland
Exclamation

This morning I've become a dba


Got an error message on SQL saying the transaction log is full, checking the log drive and it sure is

Question is, how do I reduce it?, ran truncate log file, says it has but the file is the same size with no free space still.

Can anyone offer any help? Got an MCSE sitting next to me, who has passed his SQL exam, he hasn't got a clue. Another example of the worth of an MSCE [img]images/smilies/mad.gif[/img]

Cheers

John

[Edited by mega_stream - 11/5/2002 8:35:30 AM]
Reply
Old Nov 5, 2002 | 09:13 AM
  #2  
IanW's Avatar
IanW
Scooby Regular
 
Joined: Jul 2001
Posts: 21,865
Likes: 0
Post

What method did you use to try to truncate the transaction logs?
Reply
Old Nov 5, 2002 | 09:34 AM
  #3  
GaryK's Avatar
GaryK
Scooby Regular
 
Joined: Sep 1999
Posts: 4,037
Likes: 0
From: Bedfordshire
Post

mega

A log backup normally tries to shrink the transaction log, have you tried this (after doing a full db backup of course!)

Gary
Reply
Old Nov 5, 2002 | 11:13 AM
  #4  
dharbige's Avatar
dharbige
Scooby Regular
 
Joined: Feb 2001
Posts: 845
Likes: 0
Post

Try runnnibg a query against each of your databases that just has the word "checkpoint" in it. Then truncate the transaction log again.
Reply
Old Nov 5, 2002 | 01:39 PM
  #5  
Jerome's Avatar
Jerome
Scooby Regular
 
Joined: Sep 2000
Posts: 4,460
Likes: 0
Post

Right click on the database in question and click on properties.

Click on the Transaction Log tab.

In the Maximum file size bit, click on the Restrict File Growth (MB) button and set the file size to be, say, 2MB.

Reply
Old Nov 5, 2002 | 05:53 PM
  #6  
mega_stream's Avatar
mega_stream
Thread Starter
Scooby Regular
 
Joined: May 2001
Posts: 4,580
Likes: 0
From: Scotland
Thumbs up

Thanks, actually did it when I truncated the transaction log, I assumed the free space would go up after I did this, obviously don't

All sorted now
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
MH-Racing
Subaru Parts
18
Oct 18, 2015 04:49 PM
taylor85
Wanted
2
Sep 13, 2015 04:57 PM
AzzDSM
Engine Management and ECU Remapping
4
Sep 13, 2015 03:59 PM
Scooby-Doo 2
Wheels And Tyres For Sale
1
Sep 9, 2015 06:51 PM




All times are GMT +1. The time now is 03:29 PM.