February 28, 2010 at 6:35 am
Hi All
We are having SAP-BW with Ms sql 2005, when every we are doing any table maintenance job, disk space not increasing, everyday we are doing truncate log backup. Still the database level table size not getting reduces. My query
Is it possible to do the table level reorg job in Mssql? or any tools are available?
Kindly help us
Regards
Sriram
February 28, 2010 at 8:19 am
To do a table level reorg, you would be doing a clustered index reorg. You can do a reorg on your indexes in a job in MSSQL on a daily basis.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
February 28, 2010 at 9:02 am
My question would be... why are you truncating the log to begin with? Aren't backups and restorability important?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 28, 2010 at 9:39 am
Two things that you may want to read:
Managing Transaction Logs[/url]
http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
February 28, 2010 at 7:17 pm
Jeff Moden (2/28/2010)
My question would be... why are you truncating the log to begin with? Aren't backups and restorability important?
I was hoping that it was simply a mis-type and that he meant he was doing a backup.
sriram.sbg
Gail's articles are worth reading!!!!
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
March 1, 2010 at 11:44 am
Probably some language barriers here, but it sure sounds like you need an expert to review your maintenance practices, ASAP.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 1, 2010 at 1:34 pm
Your description seems that your working database does not have a lot data growth in permanent tables but experiences a lot of expansion in the transaction log file each day. The transaction log file grows again and again after each truncate.
If this is true, it indicates large amount of transient data generated in the log file when the application runs against the database. If the same/similar application repeats running on the system, the log file will grow back. This growth is determined by the nature of the application. You should leave it since the application requires the space to run anyway.
If you want to minimize the log file size, you should look into how your application accesses the database and how it manipulates the data within. You either tune the codes or split the codes (if it is well tuned) into small transaction blocks to bring the log file growth under control.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply