Transaction Log - Initial Size Too Big

Jul 23, 2007

Hi,

Currently my db size is only 6 GB but the transaction log file initial size was set to 20 GB and has grown much way beyond the db size with the autogrowth feature turn on. The database was originally a test/development DB and was migrated to a production server including the log file. This probably caused the accumulation of transactions on the log.

We run backup everyday and tried to shrinkfile and file size did not change.

Can I change the "initial size" setting of the transaction log without causing any problems? Do I need to stop the service before I made the change assuming I made the change after the backup run? Or can I change it on the fly?


Thanks in advance.

View 6 Replies


ADVERTISEMENT

SQL 2005 Resize Initial Log Size: MODIFY FILE Failed. Specified Size Is Less Than Current Size.

Sep 4, 2007


I am trying to resize a database initial log file from 500M to 2M. I€™m using€?

ALTER DATABASE <DBNAME> MODIFY FILE ( NAME = <DBLOGFILENAME, SIZE = 2 ) "



And I'm getting "MODIFY FILE failed. Specified size is less than current size." I tried going into the database properties and setting the log file to 2M, but it doesn€™t keep the changes.



Any help with this process?

View 1 Replies View Related

Tempdb Initial Size

Mar 3, 2000

We had a runaway query which built the size of tempdb to 24000mb. Then someone changed the unrestricted file growth property to restricted growth while the size was 24000mb. Now I can not reduce the initial size. I have set the property back to unrestricted file growth. I have shrunk the tempdb and available space is almost 24000mb. I have stopped sqlserver. I even deleted the existing tempdb.mdf & tempdb.ldf files. But when SQL server is restarted, the initial size is set to 24000mb. It will not let me reduce the size. Is there anything short of manipulating the system tables to reduce the size back to 500mb?

View 5 Replies View Related

Initial Size For DB Files

Dec 26, 2006

Hi All,

I need to create a brand new db in prod and I was wondering if anybody has any recomendations for initial .mdf, .ndf, and .ldf file sizes.

Thanks.

View 2 Replies View Related

Changing Value Of Initial Size (MB)

Dec 5, 2007

I would like to increase the initial size of a SQL 2005 DB from 150 to 250 GB to prevent automatic autogrowth; would this have any impact in production if you do it on the fly?

Thanks,

Carlos

View 3 Replies View Related

Changing The Log Initial Size

Jan 27, 2007

Folks:

Is there a way to decrease the initial size of a database/log file? I've noticed you can increase it, but if you decrease it, after you confirm the change and go checking again, you will see nothing happened.

Is there a way? Am I missing anything?!

View 4 Replies View Related

How To Resize Initial Size?

Feb 12, 2008

Hi, I wish resize the allocated space of my DB.
It's 245GB, but the DB is 50GB.
I tryed this query:

use master
GO
ALTER DATABASE mydb
MODIFY FILE
(NAME = 'mydb_data',SIZE= 50000)
GO

but I receive an error:
Msg 5039, Level 16, State 1, Line 1
MODIFY FILE failed. Specified size is less than current size.

Can you help me?
Thanks

View 4 Replies View Related

File Initial Size

Mar 11, 2008

Via t-sql, how can I query for a file's initial size?

I want the same thing one finds by :
Start SQL Server Management Studio, view, object explorer, right click [dbname], properties, files, Database files: Initial Size (MB).

Many thanks.

Anything will give up its secrets if you love it enough. -- George Washington Carver

View 9 Replies View Related

Changing Value Of Initial Size (MB)

Dec 5, 2007



I would like to increase the initial size of a SQL 2005 DB from 150 to 250 GB to prevent automatic autogrowth; would this have any impact in production if you do it on the fly?


Thanks,


Carlos

View 1 Replies View Related

Newbie Question About Initial Table Size

Dec 16, 2004

Hi all,

I've worked with informix for a very long time and this is my first aproach to sql server. I have an extremely simple design for a "small" database and at this moment I'm creating the tables, in informix I can assign a first extent and next extent size to the creation of the table so if your volume and growth analisys is good you can basically be sure that you will allways have contigous space on disk for your table. I'm readin BOL to see if I have that feature here but can't seem to find anything similar. Does that mean that my table data will be "fragmented" all over the primary and secondary files every time I load into them? Would it be a good practice to simulate the extents by creating a secondary file for each table with the size I require?

Any coments will be greatly appreciated :)

Luis Torres

View 3 Replies View Related

T-SQL (SS2K8) :: Initial Size Of Database File

Apr 9, 2013

How to get the initial size of the database file using T-SQL.

sys.master_files, sys.database_files, sysfiles, sysaltfiles --> gives only the current size and not the initial size.

View 4 Replies View Related

Autogrowth And Initial Size Setting For Database

Jul 8, 2015

give me the best autogrowth & initial size setting for database

View 7 Replies View Related

How To Change Initial Log File Size On Mirrored Database

Oct 23, 2015

I have a database I need to copy from a Prod server to a Dev server. There is not enough space on the Dev server. In looking at the size of the files on the Prod server, the Initial Size property for the transaction log on the Prod server is set to 100,000 MB though the log is using nowhere near that.

This is a mirrored database so the recovery model is "full". I know that to change the initial log size, I have to put the database in 'simple" recovery model. Is this possible? Can I just:

1. Pause the mirror
2. Switch recovery model to simple
3. Change the initial size property to something smaller.
4. Shrink the transaction log
5. Change the recovery model back to full and resume the mirror?

I honestly don't know if the transaction log is needed on the Dev server. Meaning I may just be able to restore the transaction log to a different location on the server and delete it so that  new one is created.

View 2 Replies View Related

Performance - Automatic Expansion Vs Setting Large Initial Size.

Aug 25, 2004

Hi,

We currently have a fairly new SQL server 2000 db (currently about 18mb is size) as a backend to an application (Navision). Performance seems to be below what it should be.

The db is increasing quite rapidly in size, with a lot of data scheduled to be loaded onto the db and also more and more shops and users coming onto the system with alot more transactions going onto the db.

The initial setup of the db has the database File properties set to "Automatically grow file" by "30%" and has an unrestricted file growth.

The server that the db sits on is high spec and very large disk space.

Because the database will be expanding alot and thus reaching its maximum space allocation and then performing a 30% increase in size (which I guess affects performance quite a bit??) quite regularly.

Is it best to set the intitial size of the db to a alot bigger size in the first place as we have large disk space availiable and also set the % increase bigger also.

any advice on best performance would be much appreicated.

Regards,
David

View 1 Replies View Related

SQL Server 2008 :: Initial Size For TempDB Data And Log File?

Sep 12, 2011

We have installed SQL Server 2008 R2 SP1 instance and it's having Share Point 2010 databases.

We have 2 dedicated drives for Tempdb on SAN with 50 GB space. Both tempdb data & log files are created with default size. I would like to presize them.

What are the best values to start with?

U ->Tempdbdata having tempdb.mdf file
V->Tempdblog having templog.ldf file

View 9 Replies View Related

The Transaction Log Size.

Apr 5, 2001

Hello!
We have unusual situation. We increased the size of transaction log up to 100MB.
After we run the transaction log backup the physical size of transaction log file getting smaller and smaller from 100 to 88 and then to 76 and so on.
Do you now the reason?
Thank you,
Natalia

View 4 Replies View Related

Transaction Log Size

Apr 12, 2000

I have a very serious problem, if somebody can help me quickly. my transaction log file is getting bigger and bigger even after truncating. today morning when i checked, it was 1.5 GB, by evening it has gone upto 3GB, the total size of the database is 3.4 GB, out of which 3GB is Transaction log. why is it growing heavily!!!!!!!!. there is not much transaction happening. even after truncating the transaction log it is still showing 3gb.

help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

View 2 Replies View Related

Transaction Log Size

Feb 22, 2000

I currently have an database that is 110 mb and grows on an average of 5mb a week. THe enviornment is IIS 5.0 /ASP /SQL 6.5. However I find myself continously increasing the log file since it frequently fills up. At this point it is 300mb and can be filled in less than an hour with an average of 35 users. I realize that this file has alot of overhead and is affected directly by the application making the updates. Last week on a busy day (time card app) I witnessed the log increase from below 75% to 100% in a minute, forcing me to truncate the log. This application is an administrative nightmare! Any ideas what could cause this type of activity in the trans log.

View 3 Replies View Related

Size Of Transaction Log

Jan 7, 2003

Hi!

We have here a small database (around 400 MB) with simple recovery. Also autogrowth is active.

But why does the transactionlog also sized up, when it is not in use?
Our TL is around 100 MB and filled with 5 MB.
Everytime the DB gets bigger, the TL also....

View 5 Replies View Related

Transaction Log Size

Jul 17, 2003

This isin continuation with my previous query. If i cannot reduce th T Log size , how can i stop it from increasing further. Can i make secondary log files which can be deleted later on?

View 3 Replies View Related

Transaction Log Size

Jun 26, 2006

Hi All,

I need to create a script that would return the size of transaction logs for all databases. I ran a select statement against the sysfiles table but you can only run it against one db at a time. Any suggestions?

Thanks.

View 5 Replies View Related

Transaction Log Size

Sep 25, 2007

Hello dear friends,
In my database i am not able to take the backup of transaction log.
Even if i took the back up and then shrunk the file it doesnt make any change to my transaction log size.
Still the size is same.
So in every two weeks i am restarting my server.
Once it is restarted then it is ok for another 2 weeks.
After 2 weeks my transaction log size will be more than the size of my datafile.
Can you suggest your openion.
No replication or log shipping exist.

Thank you

View 9 Replies View Related

Transaction Log Size

Jun 23, 2006

Hi All,

I need to create a script that would return the size of transaction logs for all databases. I ran a select statement against the sysfiles table but you can only run it against one db at a time. Any suggestions?

Thanks.

View 2 Replies View Related

Transaction Size

Apr 20, 2004

Hello, everyone:

I am deisgning the transaction log file, and having the rough idea for transaction numbers per hour. How to determine each transaction size?

Thanks a lot.

ZYT

View 3 Replies View Related

Transaction Log Size

May 6, 2007

I have written an application which runs as a windows service. The application constantly requires to write data into the database.. pretty much every seond. Some of the tables have more than 800,000 rows.



the application works fine. Hoever I am noticing the transaction log grows very fast. All information added is handled through stored procedures. In one week the transaction log grew to 2GB. I assume a part of the reason was because I ran out of disk spae once. But generally this transaction log is growing fast. What could cause the transaction logs to grow fast, What could I do to keep the log file size down....I cant have the database down as the application needs to be running constantly.

View 4 Replies View Related

Transaction Log Size

Jan 8, 2008

I have a database whose recovery mode is FULL. I setup one maintenace plan do a backup for the database and another backup plan which backup the transaction log. The two maintenace plans runs daily.

However, the log file is still growing to a very large size. Should the log file be able to reuse after each backup of the transaction log ?

If I'd like to keep the database recovery mode as "FULL", what do I have to do to keep the transaction log within a reasonable size.

View 1 Replies View Related

Transaction Log File Size

Apr 17, 2002

How the size of transaction file is calculated. are there any standards.

I created my database with 2000 mb data filesize and 200 log file size.

now my datafile size has reach to 11000 mb but log file size is still 200.

Therefore when I take the online backup my logsize totally consumed and I have to cancel my backup.


Please reply ASAP.


regards

Sanjeev Lamba

View 1 Replies View Related

Reducing Size Of Transaction Log

May 25, 2001

If I have a transaction log in a database of size 1GB ( space allocated is during creation of database) currently only 300 mb of its space is used i.e. nearly 700 mb is free. If I want to reduce physical file size of transaction log by 200 mb and release it for operating system then How can I do it???

View 4 Replies View Related

Transaction Log Size Question ...

Feb 14, 2001

Hi,

I'm sure this question has been asked before but I need clarification on a couple of points.

I have a database (500 Mb) which is having a full backup every night at 2AM. I am doing a transaction log backup every 2 hours between 7AM and 7PM. I have noticed that the transaction log keeps growing bigger and bigger so I do a manual truncate.

- Will my transaction log keep growing bigger and bigger ?
- How can I automate a task to reduce the log size ?
- Does a full backup not truncate the log ?

Thanks for any advice,

Tim

View 2 Replies View Related

Transaction Log File Size.

Nov 29, 1999

I created a database and had its file size as automatic grow. Now the database file is of 17 MB and its transaction log file size is 230 MB. After checking transaction log file properties I came to that it is using 13 mb only and the rest of the 230 MB i.e 217 MB is free. I want that area in the transaction log to be freed and get the transaction file size to its actual size. Any help will be greatly appreciated.

Thank you in advance.

P.S: It is very urgent.

View 1 Replies View Related

How To Reduce Transaction Log Size?

Mar 19, 2000

My database's transaction log has become 1.7 GB. Can I reduce it's size? I have tried to shrink database and also set truncate on checkpoint option and also taken the backup after that. but nothing helps. Please advice.

View 1 Replies View Related

Transaction Log Size Question

Feb 1, 2001

Hi,

A very quick (and probably simple to answer) question.

I have a database for which I used Enterprise Manager to set up a complete backup at 2AM every day and a transaction log backup every 2 hours between 8AM and 8PM.

I have noticed that the transaction log is growing huge but I thought that it is supposed to get truncated every complete database backup !!

What can I do to "manage" the log file size ? (preferably automatic task)

Thanks,

TIm

View 1 Replies View Related

Size Of The Database And Transaction Log

Aug 26, 1999

Hi !

How can I find or calculate the exact space occupied by the database and transaction log in the hard disk?

Praveena

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved