<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Question about shrink the log file in the SQL Server database in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831254#M3963639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can run the log truncate backup, Every day once the backup is competed you can run the Truncate log backup it will free the space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can check the transaction code ST04 to see the over all db &amp;amp; log free space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. On the snapshot you can select the "Release unused space"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2015 05:06:46 GMT</pubDate>
    <dc:creator>S_Sriram</dc:creator>
    <dc:date>2015-01-20T05:06:46Z</dc:date>
    <item>
      <title>Question about shrink the log file in the SQL Server database</title>
      <link>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaq-p/10831251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log file in my development server is going to be full soon as presented below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/627278" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did already a backup of the log file using the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BACKUP LOG DEV TO DISK='D:\BACKUP\DEVLOG1.BAK'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question is&lt;/STRONG&gt;, In the screen below which option is the better one to select?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already shrinked the file to 10MB but is not releasing much space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I select the first option named "Release unused space" to release more space in this log disk or what I could do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/627279" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 13:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaq-p/10831251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-19T13:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Question about shrink the log file in the SQL Server database</title>
      <link>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831252#M3963637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can select the option as mentioned to release the space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 13:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831252#M3963637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-19T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question about shrink the log file in the SQL Server database</title>
      <link>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831253#M3963638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest read below blog before shrinking logs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.msdn.com/b/saponsqlserver/archive/2010/06/28/frequently-asked-questions-we-heard-on-the-sap-on-sql-2008-training-course-this-year.aspx" title="http://blogs.msdn.com/b/saponsqlserver/archive/2010/06/28/frequently-asked-questions-we-heard-on-the-sap-on-sql-2008-training-course-this-year.aspx"&gt; Frequently Asked Questions we heard on the SAP on SQL 2008 Training course this year - Running SAP Applications on Micr…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 15:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831253#M3963638</guid>
      <dc:creator>giri_ayyagari</dc:creator>
      <dc:date>2015-01-19T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question about shrink the log file in the SQL Server database</title>
      <link>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831254#M3963639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can run the log truncate backup, Every day once the backup is competed you can run the Truncate log backup it will free the space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can check the transaction code ST04 to see the over all db &amp;amp; log free space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. On the snapshot you can select the "Release unused space"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 05:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831254#M3963639</guid>
      <dc:creator>S_Sriram</dc:creator>
      <dc:date>2015-01-20T05:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Question about shrink the log file in the SQL Server database</title>
      <link>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831255#M3963640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you need to analyze why your transaction log is filling up so much. Presumably it has been auto-growing to reach 100 GB in size. Are you regularly running transaction log backups? If not, you should schedule them, at least once a day (for a development server; much more frequently for a production server), using either the SQL Server Management Studio or the DBACOCKPIT tools in your SAP system. The transaction log backup will automatically truncate the log of committed transactions after successful completion, thus preventing it from continuously filling up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will not, however, shrink the file after truncation. You should determine the appropriate size for your transaction log file so that it is large enough to manage typical transaction load on the system between backups, but not so large that it locks up an unreasonable amount of disk space. I think 10 MB is going to be far too small. You might start with about 10% of the size of your database and then see how it goes from there, fine-tuning it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shrinking the log to the appropriate size may take a few iterations. The shrink file operation releases the space in the log at the tail end, after the most recent transaction. However, there may be 'empty' log segments in the file ahead of that transaction. Thus, it may take a couple of iterations of truncating the log (via backup), then shrinking it, then truncating it again, then shrinking it again. Sometimes you can do these operations one right after the other, in a row, to get the result you want. Sometimes you may need to let some activity occur in the log, then truncate and shrink it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read up on more technical detail about why shrinking the log works this way here: &lt;A href="http://technet.microsoft.com/en-us/library/ms178037%28v=sql.105%29.aspx" title="http://technet.microsoft.com/en-us/library/ms178037%28v=sql.105%29.aspx"&gt;Shrinking the Transaction Log&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 17:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831255#M3963640</guid>
      <dc:creator>Matt_Fraser</dc:creator>
      <dc:date>2015-01-20T17:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question about shrink the log file in the SQL Server database</title>
      <link>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831256#M3963641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the backup mode to Simple and do shrink and revert to full mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudarshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 10:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/question-about-shrink-the-log-file-in-the-sql-server-database/qaa-p/10831256#M3963641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T10:25:14Z</dc:date>
    </item>
  </channel>
</rss>

