Change initial size Log Database

Hi All,
I have the same situation with http://social.technet.microsoft.com/Forums/en-US/e9c58be8-d4f2-4bb9-9cd6-921583f90afe/log-file-initial-size-is-not-changing?forum=sqldatabaseengine but didn't solve my issue. 
If I change the initial size (smaller size), it revert back. When I want to shrink, it said I have 99% available space. But after I execute it, the size doesn't shrink :(
Autogrowth is by MB, not percentage.
Any idea ?
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Krisna Ismayanto | My blogs: Krisna Ismayanto | Twitter:
@ikrisna

Hi,
You can not shrink Data or log file below its initial using alter database command, however you can use DBCC Shrinkfile command to shrink individual  files (Data/log).
Refer below article on Database Initial Size.
SQL Server: Misleading Database Initial Size Label
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
Praveen Dsa | MCITP - Database Administrator 2008 |
My Blog | My Page
Hi Praveen
im Ichwan, Krisna college.
based on your article, i tried to repro the case with my dummy database
I run this query to expand my initialize log file
and then the file changes to 1500 MB,
and then i try to use DBCC query to shrink LDF file
the result my ldf file change to 50 MB.
can i use the same methode to my production server?
is there any preparation or impact?
thanks before :)
regards
Ichwan

Similar Messages

  • Shrink database to only up to its current initial size

    In SQL server every database has a property Initial Size (MB) which can be seen in properties of database in SSMS. By default it will be 3 MB for mdf and 1 MB for
    ldf file.
    So now if create a new database then it will be set to default size(i.e 3 MB for mdf and 1 mb for ldf file). But after creating the database I change the initial size to some other value say For mdf 10 MB and ldf 5 MB.(In real-time some database administrator
    may want to change initial after creating database)
    But now if shrink the database it will shrink beyond the initial size I have set after creation(consider that no data is there in database otherwise it will shrink to its actual content size). It will shrink till the initial size it had during creation of database(i.e
    3mb for mdf and 1 mb for ldf). I was expecting to shrink till the initial size which I have set(i.e 10 mb for mdf and 5mb for ldf). Can it be possible to do? If possible then how?
    In some article i saw like dbcc SHRINKFILE can be used to shrink beyond initial size and dbcc SHRINKDATABASE cannot shrink beyond initial size. But I want to shrink only till the initial size to which I have set.
    Note: I know that shrink is bad and should not be done.But I want to know how it can be done? If sql server considers only the initial size set during creation of database then what is the use of setting the initial size after creating database?

    http://technet.microsoft.com/en-us/library/ms190488.aspx
    The database cannot be made smaller than the minimum size of the database. The minimum size is the size specified when the database is
    originally created, or the last size explicitly set by using a file size changing operation such as DBCC SHRINKFILE or ALTER DATABASE. For example, if a database is originally created with a size of 10 MB in size and grows to 100 MB, the smallest the database
    can be reduced to is 10 MB, even if all the data in the database has been deleted.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence
    I understood what you have mentioned above. As you said minimum size is the size specified during database creation. But is there any way to change the initial size of database so that during shrink it will come only up to that value. i know that during shrinkfile
    i can specify size. But i want to know whether we can change that initial size.

  • Log file initial size is not changing

    Hi Team,
    I have a database on SQL Server 2008 whos log file is 187 GB while total backup size of database is 5 MB.
    When I am taking log backup and full backup and trying to change the initial size of log file then it is again reaching to 187 GB strange?
    Kindly help
    Thanks

    If you don't need log backup (no point-in-time restore, no log-shipping, etc.), put the database into the SIMPLE recovery model.
    Shrink log: http://www.sqlusa.com/bestpractices2005/shrinklog/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Can change the size of the redolog files while the database is running.

    How the size of the redolog files will hurt your database performance ?
    Can change the size of the redolog files while the database is running in oracle 9i. ?
    What will be its impact on the standby database ?
    Thanks in advance.

    redo logs that are too small can cause waits on the switches for heavily utilized systems. logs that are too large are a pain the a$$ during recovery. check v$loghist to see how often switches occur - an average of 20 minutes is good; if you have many switches happening back-to-back, that's a bad sign.
    you can change the sizes while the db is up. choose a redo group that is INACTIVE, drop it, delete the files, and recreate it with larger files. then force a switch ("alter system switch logfile;"), and do another inactive group. I actually prefer to do as many switches as necessary to make the new group active so I can verify that I didn't screw up before dropping the next group.
    not sure of impact on standby database.

  • Change block size for several log-files simultaneously?

    Hi,
    I'm using SignalExpress to record and analyze data.
    Sometimes I want to analyze the recorded data both for a short period of time and for longer time.
    (Imagine creating an average of every second first and then an average of every 10 seconds)
    Then I need to change all the log-files, and also the specific parts of the log-file. See attachment.
    I have sometimes up to 1000 log-files containing signals from 4 different modules, that makes 4000 adjustments to change from block size 10000 to block size 1000.
    Is there any way to adjust all the log-files block size at once?
    Many thanks!
    Anders Hansson
    Engineer
    Attachments:
    NI.JPG ‏95 KB

    Hi,
    Is't anyone else interested in a solution for this operation?
    I reported this to the NI-feedback service and they adviced me to report/request advice here to get a quicker reply.
    So...
    Best regards
    Ingenjör Hansson

  • How to set initial size for mailbox in Exchange 2013?

    Hello All!
    I've installed Exchange 2013.
    Now I'd like to check Backup/Restore of some DataBase.
    For thist I look for some way to create Bulk of Mailboxes in DataBase and to set some initial size 50-100Mb for each.
    Thanks a lot!
    BR,
    Pavel

    Hi 
    In your testing creating bulk mailboxes alone will not help . We need to populate some data's in the databases so that the databases are written with some values and they contain some data.
    For your testing with backup
    First you need to create few number of mailboxes.
    Populate those mailboxes by sending more emails.
    delete those emails and then try restoring those emails from the backup or if its testing QA server then you can dismount any databases delete few log files and try to restore them from your backup
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • Changing the size of a drop down list

    Hi Everyone,
    Is there anyway to change the size of a drop down list?  For example, our customer would like to make the drop down list for the Ship-To field on the logistics tab of the sales orders longer.  Currently, they cannot see the full name when they scroll through it.  Is this possible?  Depending on what Customer Code they enter, the field size appears to change.
    Thank you in advance for your help.
    Amanda

    I am using Tahoma size 10 as well. 
    Is the drop down size somehow related to the size of the first few records?  So, if those are shorter than those at the end, perhaps it doesn't adjust for the size of the bottom records.  For example, in our customer's database here's a sampling of what they have entered and the order:
    Wal-Mart 6124
    Wal-Mart 6125
    Wal-Mart 6126
    Wal-Mart 7001
    Wal-Mart Supercenter 1111
    Wal-Mart Supercenter 2094
    Wal-Mart Supercenter 3475
    The drop down box is large enough to see the Wal-Mart 6124, etc. but not large enough to see the Wal-Mart Supercenter ones at the bottom of the list (keep in mind there are over 100 ship-to's for this Business Parnter).  Does it maybe only look at the first fifty records or something like that?
    Thanks again,
    Amanda

  • How to change Font Size of Object Explorer in "SQL Server Management Studio"

    Dear Team,
    "SQL Server Management Studio" is a fantastic IDE for the database.
    There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
    Can you please accumulate this feature in IDE ASAP?
    Many Thanks,
    Bhavesh

    Its there
    Go to Tools -> Options
    Then under Environment you've fonts and colors tab where you can specify a higher font size.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to change font size in Notification center?

    Good day
    I purchased new monitor with BIG resolution an dfount what font in notification message from Notification Center stay very small
    I try to find place where possible change font siza but don't found anything
    Please help

    AFAIK there is no way to customize this font size. You can't resize the window either.
    You need to report it to Apple Feedback so it can be logged and put in the queue to be fixed.
    http://www.apple.com/feedback/macosx.html

  • How to change the size of the force quit window?

    When I open the force quit window, it fills my entire screen, and it is larger than the screen of the TFT monitor that I am using from time to time. How can I change its size back to original? The window is not resizable by dragging its border or clicking the green plus button in the title bar.
    I don't know how the window got this size in the first place. All I know is that it happened during a crash where I closed a lot of other windows and where I accidentially clicked the green plus button of the force quit window instead of the red x.

    Try rebuilding your Finder prefs...
    Go to Finder "Go" menu hold the option key and choose Library. Then go to Preferences and trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.)

  • How to change the size of redo file

    Deal all,
    I finish installed the db,and the size of redo file is 50m by default. I found many "checkpoint not complete" events in alert.log file.
    Now i want to change it to 100M and try to avoid the event appear again ,how can i do?

    As Sb has already correct reply that size of redo logs can not be changed. We have to create new bigger/smaller size of redo logs and then 'alter system switch logfile' to inactivate older logs. Now you can drop older logs. Redo logs are something a glass of water. We can not change the size of glass, if we wish to dring more/less water, we will take that sized glass and we will get that sized water.
    Remember to consider the multiplexing/grouping when doing any maintenance like this. And there may be archive log & backup space considerations.
    Hans @ http://dbaspot.com/oracle-server/33231-changing-redo-log-file-size.html
    Regards
    Girish Sharma

  • Cannot change page size with acrobat

    I am able to convert my manuscript in Mac word(2011) to adobe acrobat (XI); unfortunately the 6 X 9 " page size does not convert. I spent a few hours on the phone with adobe support and the final resolution was to upload the file to them and they converted it for me. however, they used distiller which reduced the file size and appears to have affected the many images. Does anyone have any advice? The best I have been able to glean online is work with inDesign to change page size.

    Thanks.
    The problem was with the paper size. In addition to change the page size I needed to change the paper size in the print option before selecting save Adobe PDF.
    From Word go to File> Print
    Open the Copies & Pages dropdown
    Select Paper Handling
    Check the Scale to fit paper size box
    Open the Destination Paper Size list
    Select your custom 6x9 Preset
    Click the PDF button
    Select either Save as PDF or Save as Adobe PDF
    The unfortunate thing is that I was able to do this initially, but when I went back to replicate it adobe is creating 2 files one with my cover page and the rest to the manuscript. Luckily my initial copy was good. Thanks again for your help.

  • How can I change the size of table control in table maintenance re-gen?

    Hello Experts,
    I hv created a maintenance view and after generated table maintenance view for it.
    now it adjusts the size of table control in table maintenance generation.
    I want to change the size (width) of table control and again re-generate the table maintenance.
    But when re-generation occurs, table control size is set to initial.
    why it is happening? and wt to do to solve this issue? any user exit?
    I need the changed size of table control even if its re-generated.
    Regards,
    R.Hanks

    Hello Ronny,
    Goto SM30, Enter your table name for which you have maintained your table maintainence generator .
    When the maintainence screen appears for your table name , Goto System->Status->Screen Program name.
    Copy that program name from there.
    Open that module program through SE80,this is the program name of your SM30 screen which appears when we enter our table name in SM30 transaction.
    In SE80,click the layout of the module program name you have entered there.
    Its layout will display you the table control(of SM30) present to enter your your enteries.
    In the change mode you can change its size , savee it and activate that program.
    Now goto to SM30 again and enter your table name, it will show you the changed size of the table control used to take the enteries.
    Note:This changed size is only for your table name and it will remain of its previous size for other table enteries.
    Hope it helps you.
    Thanks Mansi

  • How to change page size to generate PDF ?

    Hi,
    I just finished a document : 4 pages on A4 format with texts and images.
    I now have to generate a pdf file to send to the printer.... but the staff decided to change the format to a 80% of the initial size.  I have to generate the pdf to the right size and I don't really know how to do it.
    On the second hand, I have a question about the jpg images imported in my document.  The printing company asked me to be sure to have CMJN pics.  As far as i know, jpg is RVB.  Does the pdf export make the change ?
    thanks in advance.

    isachrislisa,
    In Preview you may Print to a reduced scale, and the medium you print to can be another PDF.
    The color space question is an odd one, it seems to me, since I would think your printer should be the one to make such corrections. Without advanced graphics editing software, if would be difficult for you to transform your JPEGs from RGB to CMYK. A more reasonable request might be to keep all the photos and graphics in RGB so the printer has only color space to deal with converting. I'm sure that given some time, the commercial printing experts will jump in here with some better advice.
    Jerry

  • Changing photo size

    I have some pictures on my ipod but when I look at them some are really blurry and have other weird stuff(they look fine on the computer). The others look fine, it seems only the big pictures are blurry, the small or meadium sized ones are fine. So my question is how do I change the size of my pictures to make them smaller? By the way, I have tried right-clicking then pressing edit then I change the size and click save, but it doesn't work! Please help.

    txrangerman:
    Welcome to the Apple Discussions. Try R-Name. With it you can determine the pixel dimension you want and also the quality/compression level to use. I am able to reduce a 1.6 MB 2272 x 1704 jpg down to 640 x 480 at 40 KB (used a quality level or 60%). It's free and can batch change folders of photos. You will have to use it outside of iPhoto, however.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

Maybe you are looking for

  • Cisco 3650 Issue with 1231 AP

    hi all, i've got an issue with a new cisco 3650 48 port wherein older AP 1231 keeps on disconnecting. the connection is just a simple trunk. #sh run int g1/0/47 Building configuration... Current configuration : 62 bytes interface GigabitEthernet1/0/4

  • Can somebody tell me why firefox wont play a video (Mp4) but if I download it and play it on my computer and go back to firefox it will then play the video?

    None of the videos on this site would play... http://www.meipai.com/media/103870328 Until I download each video and play it with windows media player. I can then go back to Firefox and the video will play. I have been going nuts trying to figure this

  • Download from jsp----

    hi friends! i am using a jsp for a download of a video file.The download step should be like, clicking the right mouse button on the link and select,'save target as' to save the file into the computer hard disk. Here is the place where i have been wa

  • Processing exception during a "Render" operation -- adobe form

    Hi All, I am getting following error when I am running any adobe form including tutorials from sdn. com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: <b>Processing exception during a "Render"</b> o

  • Adding to Word's Address Book

    This should be really simple, but I cannot find the answer anywhere! I just typed an address into the Label box (Tools menu) in Word 2004 for Mac v11. How can I add this address to Word's address book?