WikiWirral values you and your opinion.
Forum Statistics
Forums65
Topics76,360
Posts1,033,313
Members14,578
Most Online16,551
Feb 2nd, 2024
Who's Online Now
14 members (3 invisible), 10,224 guests, and 425 robots.
Key: Admin, Global Mod, Mod
Top Posters
sunnyside 45,164
MattLFC 22,315
Mark 21,269
granny 17,788
_Ste_ 16,345
Newest Members
PaulRobson, meolswanderer, Firminafirm, YesterYearGenea, Luke121
14,578 Registered Users
New General Forums
Hi to everyone
by PaulRobson - 15th Apr 2024 1:18pm
Last person to post wins...
by GaryB - 9th Oct 2007 9:15pm
New Wirral History
Moreton History
by IanFife - 1st Apr 2024 1:03pm
Campbell Terrace, behind old St. Andrew's Church on Conway
by KimTheilmann1 - 31st Mar 2024 3:34pm
Tall Brick Chimneys
by diggingdeeper - 16th Mar 2024 12:56pm
Through the Window: GWR Paddington to Birkenhead
by yoller - 16th Aug 2017 7:09pm
Old Hall in Higher Bebington
by Rhoobarb - 25th May 2010 6:55pm
Top Posters(30 Days)
bert1 5
casper 4
Topic Replies
Car paint jobs
by PaulRobson - 15th Apr 2024 9:54pm
Hi to everyone
by PaulRobson - 15th Apr 2024 1:18pm
Traffic Wardens
by diggingdeeper - 14th Apr 2024 2:42pm
West Kirby flood defences
by Excoriator - 13th Apr 2024 3:35pm
Lost river (Well, brook really)
by diggingdeeper - 10th Apr 2024 11:00pm
Any Decent Restaurant Open On a Mon Evening.
by Abakumss - 8th Apr 2024 9:04am
Paddle Steamer Waverley
by casper - 6th Apr 2024 9:09am
Wirral waters
by casper - 6th Apr 2024 9:07am
Through the Window: GWR Paddington to Birkenhead
by hootmeil - 4th Apr 2024 1:15pm
April
M T W T F S S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Top Likes Received (30 Days)
cools 1
Kylix 1
casper 1
Top Likes Received
bert1 14
casper 4
Mark 4
granny 3
Previous Thread
Next Thread
Print Thread
#155425 11th May 2007 2:12pm
Joined: Nov 2003
Posts: 3,793
AX_125 Offline OP
Forum Guardian
OP Offline
Forum Guardian
Joined: Nov 2003
Posts: 3,793
I have a database that was setup far before my time in my current employment. The log file has grown to 40GB, i have set limits on it to stop it growing any more. I really need to shrink this log file quite consideribly. The database has a full backup every week and an incremental backup every night.

My knowledge of MS SQL server isn't amazing, but i was under the impression this might purge the logfiles like it does with MS Exchange when that is backed up.

The database is only about 300mb and is currently only used for reference. Should i delete the log file and start again with restricted log file sizes?


[Linked Image]
I am a signature virus, copy me into your signature to help me spread.
Google Ads
AX_125 #155429 11th May 2007 2:59pm
Joined: Nov 2003
Posts: 12,002
Wiki Master
Offline
Wiki Master
Joined: Nov 2003
Posts: 12,002
Can you not create a cron to purge the old files at the end of each day?


What If There Were No Hypothetical Questions?
StuyMac #155436 11th May 2007 4:35pm
Joined: Nov 2003
Posts: 3,793
AX_125 Offline OP
Forum Guardian
OP Offline
Forum Guardian
Joined: Nov 2003
Posts: 3,793
Already tried that frown


[Linked Image]
I am a signature virus, copy me into your signature to help me spread.
StuyMac #155437 11th May 2007 4:39pm
Joined: Nov 2003
Posts: 21,269
Likes: 4
Wiki Master
Online Happy
Wiki Master
Joined: Nov 2003
Posts: 21,269
Likes: 4
Is this on a windows or Linx Server as they can behave different even if its the same version of mysql.

As there log files, i assume for tracking,
you should be able to back them up, and then delete them.

As you say starting a fresh with a max log size.

I don't know for sure as the versions and platform can be important.

But even if you answer those questions, i don't think i could
give you a 100% Answer.

Don't forget, if its not broken dont fix it wink

Mark #155441 11th May 2007 5:03pm
Joined: Nov 2003
Posts: 3,793
AX_125 Offline OP
Forum Guardian
OP Offline
Forum Guardian
Joined: Nov 2003
Posts: 3,793
windows 2000

Well, the disk is 60GB and this log is 45gb. I have now stopped the log from growing any more, there is not enough space to back it up locally. I am doing an online backup this weekend. Hopefully this might do it.


[Linked Image]
I am a signature virus, copy me into your signature to help me spread.
AX_125 #155445 11th May 2007 5:31pm
Joined: Aug 2004
Posts: 22,315
Wiki Master
Offline
Wiki Master
Joined: Aug 2004
Posts: 22,315
Originally Posted by Mark
Is this on a windows or Linx Server as they can behave different even if its the same version of mysql.

MSSQL is Windows NT only hence the name Microsoft SQL, and has very little to do with MySQL and absolutely nothing to so with Linux. The same as ASP. Talking about MySQL in a topic that is about MSSQL is just confusing matters.

As much as I work with servers I havent a clue about MSSQL lmao! Linux all the way for me unfortuantly sorry I cant offer much help.

wink

MattLFC #155449 11th May 2007 5:50pm
Joined: Nov 2003
Posts: 21,269
Likes: 4
Wiki Master
Online Happy
Wiki Master
Joined: Nov 2003
Posts: 21,269
Likes: 4
1 log file of 45gb omg

Sorry i cant help, as MYSQL is where i have more knowledge.

Let us know how you get on, if you would,
you never know when it may come in handy.

Sorry i looked too quick, as i work with mysql my eyes
seen mysql and not mssql.

Mark #155454 11th May 2007 5:58pm
Joined: Aug 2004
Posts: 22,315
Wiki Master
Offline
Wiki Master
Joined: Aug 2004
Posts: 22,315
Lol easy enough mistake to make to be honest.

MattLFC #156100 18th May 2007 10:26am
Joined: Nov 2003
Posts: 3,793
AX_125 Offline OP
Forum Guardian
OP Offline
Forum Guardian
Joined: Nov 2003
Posts: 3,793
Solution, for anyone that is interested

1.DBCC SHRINKFILE(Pubs_log, 100)

2.BACKUP log Pubs WITH TRUNCATE_ONLY

3.DBCC SHRINKFILE(Pubs_log, 100)



[Linked Image]
I am a signature virus, copy me into your signature to help me spread.

Moderated by  Mark 

Link Copied to Clipboard
Random Wirral Images

Click to View Topic.
Newest Topics
Car paint jobs
by PaulRobson - 15th Apr 2024 9:54pm
Hi to everyone
by PaulRobson - 15th Apr 2024 1:18pm
Traffic Wardens
by Excoriator - 11th Apr 2024 4:11pm
West Kirby flood defences
by Excoriator - 10th Apr 2024 10:45pm
Paddle Steamer Waverley
by diggingdeeper - 5th Apr 2024 7:57am
For Sale & Free
Wisper electric bike. 36v .
by Dilly - 21st Mar 2024 8:36pm
This is Elvis
by GingerTom - 17th Mar 2024 3:37pm
Member Spotlight
diggingdeeper
diggingdeeper
Wirral
Posts: 14,350
Joined: July 2008
Today's Birthdays
There are no members with birthdays on this day.
New Wirral Info
Traffic Wardens
by Excoriator - 11th Apr 2024 4:11pm
Paddle Steamer Waverley
by diggingdeeper - 5th Apr 2024 7:57am
Wirral waters
by casper - 2nd Apr 2024 11:32am
Facial recognition coming in supermarkets?
by Excoriator - 27th Mar 2024 11:52am
Hot Spot Chippie Broadway
by Excoriator - 26th Mar 2024 8:57pm
News : New Topics
West Kirby flood defences
by Excoriator - 10th Apr 2024 10:45pm
Lost river (Well, brook really)
by Excoriator - 10th Sep 2019 9:50am
New Enthusiast Forums
Car paint jobs
by PaulRobson - 15th Apr 2024 9:54pm
Netflix 3 Body Problem.
by BultacoAstro - 22nd Mar 2024 9:04am
Any Decent Restaurant Open On a Mon Evening.
by Uffda - 21st Oct 2012 7:16pm
What song are you listening to?
by - 24th Jun 2007 10:06am
Popular Topics(Views)
5,071,111 WIKI WALK CHAT
4,017,097 Spotted!
Powered by UBB.threads™ PHP Forum Software 7.7.5