Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-26-2007, 10:02 AM   #1
Member (10 bit)
 
corosus's Avatar
 
Join Date: Jan 2002
Location: brussels
Posts: 788
Send a message via MSN to corosus
Urgent SQL Sever 7 problem

Hi

We have a dedicated OLD box with SQL server seven running on Windows NT server and the partitiono that is used for the data files is almost full (last night i still had 500 mb but today thanks to a error by someon else it's down to 9..94 mb)


there are 3 large file on the disk

a 2 gig Pagefile.sys

a 6 Gig log file

and a 3 gig data file

I don't know the first thing about SQL and we really need this box to run smoothly, can i safely delete anny of these files, or is there a way to make them smaller ???


Greetz and thanks..
corosus is offline   Reply With Quote
Old 10-26-2007, 10:56 AM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Nope you can't delete them. You could possibly shrink the page file but it may impact perfomance. It is pretty easy to shrink the log file with SQL Server 2000. Here is how to do it with SQL Server 7.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 10-30-2007, 07:49 AM   #3
Member (10 bit)
 
corosus's Avatar
 
Join Date: Jan 2002
Location: brussels
Posts: 788
Send a message via MSN to corosus
thank you verry much mairving,

schirinking the file only gave us a couple of 100 mb , but that was enough room to work with and get rid of the massive log file.

I take NO responsibility for this method, but in our case it works out fine


Quote:
sp_detach_db
@dbname='yourdatabase',
@skipchecks='false'

Move logfile to a different location on the network

sp_attach_single_file_db
@dbname = 'yourdatabase',
@physname = '-Path-to-your-MDF-file'

DBCC REBUILD_LOG ('yourdatabase','-Path-to-your-LDF-file')

restart the machine to make sure all the agents work

Last edited by corosus; 10-30-2007 at 08:27 AM.
corosus is offline   Reply With Quote
Old 10-30-2007, 08:22 AM   #4
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
If you put the database into "Simple" mode (in the Database properties inside of Enterprise Manager), it will keep the log file from growing larger than a ~100 MB.
If you do this though, you will need to make sure you do FULL SQL backups (i.e. a BAK file) instead of transactional log backups.
faulkner132 is offline   Reply With Quote
Old 10-30-2007, 08:33 AM   #5
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Quote:
Originally Posted by faulkner132
If you put the database into "Simple" mode (in the Database properties inside of Enterprise Manager), it will keep the log file from growing larger than a ~100 MB.
If you do this though, you will need to make sure you do FULL SQL backups (i.e. a BAK file) instead of transactional log backups.
Are you sure about that? I know that works in SQL Server 2000. I am not so sure about version 7.
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent!!! DVD Writer problem ezone Computer Hardware 13 07-15-2007 11:05 AM
problem with wifi DHCP on assigned ip network corosus Networking & Online Security 3 12-01-2004 08:58 AM
Ventrilo Sever Problem blackdragun100 Networking & Online Security 0 11-26-2004 03:07 PM
Sound Card and CD R/W problem ultra Home Theater, Audio, and Video 8 03-15-2003 12:14 PM
Urgent Help : Audigy 2 and Source Problem EdglerVess1 Computer Hardware 0 02-22-2003 11:31 AM


All times are GMT -5. The time now is 03:33 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2