Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 SQL Server Transaction Log Fills
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 20 October 2005 :  05:33:13  Show Profile  Send RaiderUK a Yahoo! Message
Hi,

I have a SQL server running at my ISP, up until 4 weeks ago everything was fine and i had to empty the Trasaction Log every 6 months. Now the Log needs clearing every day and grows 15mb every 5 hours. Can anyone please help?

Kind Regards,

Daniel

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 20 October 2005 :  05:52:57  Show Profile  Visit HuwR's Homepage
ask your host to set the recovery model of your database to "simple" this should stop your transaction log from filling up.

It may also be worth your while looking for a host who knows something about SQL databases
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 20 October 2005 :  17:19:21  Show Profile  Send RaiderUK a Yahoo! Message
Hi HuwR,

I have spoke to the ISP and they say the model is already set to simple. Is there anything else i can try? Why would it have been fine for the past year and now grow by 15mb per day?

Thanks for the help,

Daniel
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 21 October 2005 :  04:49:51  Show Profile  Send pdrg a Yahoo! Message
This sounds very odd - there are some diagnostics you can do as SQL Admin that you probably can't as a regular user - try asking your host if he has any ideas, as it certainly sounds most odd - 15Mb/day is huge growth.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 21 October 2005 :  05:25:00  Show Profile  Visit HuwR's Homepage
How busy is your site ?
How many posts do you get in an average day ?
Are you doing lots of maintenance (archiving or deleting) ?
Does anything else use your db ?
How big is your db ?
How big is your log ?
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 21 October 2005 :  12:18:30  Show Profile  Send RaiderUK a Yahoo! Message
the database is only 5mb, the log is 15mb then it hits our limit which is 20mb.

The usage has not gone up recently and the last time the log got full was 6 months ago and i cleared it and took another 6 months to fill until now.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 21 October 2005 :  12:40:40  Show Profile  Visit HuwR's Homepage
I would really get your host to check things, it is pretty implossible to have a transaction log 3 times the size your db when using the simple model, It would also indicate that your host does not back up your database, something they really should be doing. The transaction log for Snitz is < 20Mb and our main DB is >350Mb, in fact the largest transaction log on my servers is only 25Mb.

As I said in my earlier post, I would seriously consider looking for another SQL host, a 20Mb db limit is a bit of a joke to be honest
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 24 October 2005 :  06:22:07  Show Profile  Send RaiderUK a Yahoo! Message
Thanks for the help everyone.

I am going to call the host today, but i first have to log a support call in text on their site and they might get back to me in the next 6 months, i really don't think they know what they are doing with SQL databses at all.

Kind Regards,

Daniel.
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 24 October 2005 :  07:58:58  Show Profile  Send RaiderUK a Yahoo! Message
Hi Me again.

I have spoke to the ISP and they say it will not be their fault and the interigate the transaction log to see what info is in it an what is creating it.

Can anyone tell me how i can do this?

Kind Regards,

Daniel.
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 24 October 2005 :  10:05:15  Show Profile  Visit SiSL's Homepage
You may check this topic:

http://support.microsoft.com/kb/317375/


CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 24 October 2005 :  12:06:30  Show Profile  Send pdrg a Yahoo! Message
this one is interesting
quote:
Client Applications Do Not Process All Results
If you issue a query to SQL Server and you do not handle the results immediately, you may be holding locks and reducing concurrency on your server.

For example, suppose you issue a query that requires rows from two pages to populate your result set. SQL Server parses, compiles, and runs the query. This means that shared locks are placed on the two pages that contain the rows that you must have to satisfy your query. Additionally, suppose that not all rows fit onto one SQL Server TDS packet (the method by which the server communicates with the client). TDS packets are filled and sent to the client. If all rows from the first page fit on the TDS packet, SQL Server releases the shared lock on that page but leaves a shared lock on the second page. SQL Server then waits for the client to request more data (you can do this by using DBNEXTROW/DBRESULTS, SQLNextRow/SQLResults, or FetchLast/FetchFirst for example).

This means that the shared lock is held until the client requests the rest of the data. Other processes that request data from the second page may be blocked.


Are you using pure Snitz, or do you have any mods? Maybe a mod is causing the above?

If your host is saying they won't analyse the logs, do they give you sufficient privs to do so yourself?
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 24 October 2005 :  12:35:27  Show Profile  Visit HuwR's Homepage
pdrg, what you quoted would really affect select query performance, however a select query will not affect the size of your transaction log in any way, the transaction log contains updates, inserts and deletes to your data not select queries
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 24 October 2005 :  12:36:36  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by RaiderUK

Hi Me again.

I have spoke to the ISP and they say it will not be their fault and the interigate the transaction log to see what info is in it an what is creating it.

Can anyone tell me how i can do this?

Kind Regards,

Daniel.


Does your host back up your DB ? if they do not, then it WILL affect the size of your log.
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 24 October 2005 :  13:33:18  Show Profile  Send RaiderUK a Yahoo! Message
Yes they do but weekly i think, the lof file grows to 15mb in 5-7 hours.
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 25 October 2005 :  05:42:39  Show Profile  Send pdrg a Yahoo! Message
Hi Huw, I just spotted it on that KB about causes for Log Bloat, made me wonder if we were dealing with pure Snitz or Snitz+mods...
for instance, if some mod has left a transaction uncommitted, or a transaction cannot commit due to locking, or something.
quote:

Transaction not committed due to blocking: In a multi-user environment it is
possible for an open transaction to become blocked on locks held by another
process. In this case, the transaction will nevertheless remain open, preventing
log truncation.



I wonder what running

DBCC LOGINFO (databasename)
sp_helpdb databasename
sp_spaceused
dbcc sqlperf (logspace)

would throw up?
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 25 October 2005 :  05:56:33  Show Profile  Visit SiSL's Homepage
I've lived that for sometime, but having an error back then... Telling me a transaction has been locked as ASP Error on my screen.

How that happened?

I was running a script that deletes "duplicates" on my FORUM_A_REPLY table to make a UNIQUE INDEX, script basically was taking 1000 records, moving to first record, updating a coloumn named DUP_CHECK from 0 to 1 and then using DELETE for same REPLY_ID but DUP_CHECK = 0.

When I tried to run same script from another browser, I have encountered that error that some of records is being locked by another process...

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07