Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-14-2003, 02:54 PM
admin
Guest
 
Deleteing msSQL log files

We seem to be getting a lot of users with there logs full in msSQL.

I can delete them but the way i do it just does not seem right. Does any one know if there is a command or Query you can run on just one database to clear out the logs..

Does any one really need the logs and if not is there a command that can be run once a week to clear out every ones??

Just not that good on the database side of things in msSQL..

I know a lot of you guys use it here so I am sure some one knows..
Reply With Quote
  #2  
Old 03-14-2003, 05:50 PM
jon jon is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
under the properties of each db there is an option that can be checked off "Auto Shrink". This should keep things under control. I think it is not checked as the default setting. If PSoft would enable us with higher rights we would be able to take care of this and many other common tasks ourselves.

Jon
Reply With Quote
  #3  
Old 03-14-2003, 08:00 PM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
If you want to do it maually issue a

DBCC SHRINKDATABASE

command.

To keep the logs small make sure you set the recovery model to "Simple" (same options tab as the Auto Shrink checkbox) this in combination with jon's tip above about Auto shrink will keep all logs under 5Mb or so freeing up a lot of space you could then give to us as MS SQL Space *wink*
Reply With Quote
  #4  
Old 03-14-2003, 08:03 PM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
As a side thought, you can also setup maintenance jobs on all DB's which will check integrity, run database backups and do shrinks etc weekly, they're very easy to setup.
Reply With Quote
  #5  
Old 03-15-2003, 12:08 AM
admin
Guest
 
Well it would be nice if there was a command to go over all the DB and switch them to simple as h-sphere does not set this by default and also set auto Auto Shrink for them all.
Reply With Quote
  #6  
Old 03-15-2003, 01:04 AM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
Can you find the stored procedure or script that H-Sphere uses to create the DB's ? I can prolly modify it for you to create the appropriate settings when the user creates the DB. I can probably knock up a script you can run to just set all DB's as well if you want.
Reply With Quote
  #7  
Old 03-17-2003, 10:14 AM
nVision's Avatar
nVision nVision is offline
Vortech Inc. Customer
Vortech Inc. Customer
 
Location: The beautiful North Georgia Mountains
Brad,

If you are able to adjust the setting, could you autoshrink the mssql db "slr_photos"? I got several calls from this client over the weekend that his database had gone over quota due to his log files.

Thanks
Reply With Quote
  #8  
Old 03-17-2003, 07:56 PM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
If you submit a trouble ticket you'll find this will get done fairly quickly for you nVision.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MSSQL Files mbarlowm Chit Chat Public 8 09-24-2003 02:56 AM
asp in htm files Silverbug Chit Chat Public 4 07-01-2003 08:27 AM


All times are GMT -5. The time now is 01:58 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Vortech Inc. ©2009
Page generated in 0.51540 seconds with 17 queries
[Output: 65.78 Kb. compressed to 60.67 Kb. by saving 5.12 Kb. (7.78%)]