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 11 May 2002, 08:35 AM
  #1  
mega_stream
Scooby Regular
Thread Starter
 
mega_stream's Avatar
 
Join Date: May 2001
Location: Scotland
Posts: 4,580
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 05 November 2002, 09:13 AM
  #2  
IanW
Scooby Regular
 
IanW's Avatar
 
Join Date: Jul 2001
Posts: 21,865
Likes: 0
Received 0 Likes on 0 Posts
Post

What method did you use to try to truncate the transaction logs?
Old 05 November 2002, 09:34 AM
  #3  
GaryK
Scooby Regular
 
GaryK's Avatar
 
Join Date: Sep 1999
Location: Bedfordshire
Posts: 4,037
Likes: 0
Received 0 Likes on 0 Posts
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
Old 05 November 2002, 11:13 AM
  #4  
dharbige
Scooby Regular
 
dharbige's Avatar
 
Join Date: Feb 2001
Posts: 845
Likes: 0
Received 0 Likes on 0 Posts
Post

Try runnnibg a query against each of your databases that just has the word "checkpoint" in it. Then truncate the transaction log again.
Old 05 November 2002, 01:39 PM
  #5  
Jerome
Scooby Regular
 
Jerome's Avatar
 
Join Date: Sep 2000
Posts: 4,460
Likes: 0
Received 0 Likes on 0 Posts
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.

Old 05 November 2002, 05:53 PM
  #6  
mega_stream
Scooby Regular
Thread Starter
 
mega_stream's Avatar
 
Join Date: May 2001
Location: Scotland
Posts: 4,580
Likes: 0
Received 0 Likes on 0 Posts
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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
MH-Racing
Subaru Parts
18
18 October 2015 04:49 PM
taylor85
Wanted
2
13 September 2015 04:57 PM
AzzDSM
Engine Management and ECU Remapping
4
13 September 2015 03:59 PM
robbie1988
Wanted
2
13 September 2015 09:25 AM
Scooby-Doo 2
Wheels And Tyres For Sale
1
09 September 2015 06:51 PM



Quick Reply: SQL7 help needed



All times are GMT +1. The time now is 12:10 AM.