<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How to resolve "Transaction log is full" error while deleting Projects</title><link>https://communities.bentley.com/products/utility_network_analysis___design/w/utility_network_analysis_and_design_wiki/52855/how-to-resolve-transaction-log-is-full-error-while-deleting-projects</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>How to resolve "Transaction log is full" error while deleting Projects</title><link>https://communities.bentley.com/products/utility_network_analysis___design/w/utility_network_analysis_and_design_wiki/52855/how-to-resolve-transaction-log-is-full-error-while-deleting-projects</link><pubDate>Thu, 14 Jan 2021 10:33:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:af87fcc7-f110-49e7-8106-6f7dd0f9fd56</guid><dc:creator>Avanti Khandalkar</dc:creator><comments>https://communities.bentley.com/products/utility_network_analysis___design/w/utility_network_analysis_and_design_wiki/52855/how-to-resolve-transaction-log-is-full-error-while-deleting-projects#comments</comments><description>Current Revision posted to OpenUtilities Wiki by Avanti Khandalkar on 1/14/2021 10:33:43 AM&lt;br /&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Promis.e, Bentley Substation&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Connect&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Database Platform Support&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Subarea:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h1&gt;Error or Warning Message&lt;/h1&gt;
&lt;p&gt;When attempting to delete a very large project, an error message is displayed indicating that the transaction log is full.&lt;/p&gt;
&lt;h1&gt;Explanation&lt;/h1&gt;
&lt;p&gt;Each SQL Server database has a corresponding transaction log. When created by the default SQLServerProject.sql script, the transaction log file of the SQL project database is set to automatically grow as needed, up to some maximum size.&amp;nbsp; In one case, this size was insufficient for the amount of transactions taking place during the deletion of the large project.&lt;/p&gt;
&lt;h1&gt;How to Avoid&lt;/h1&gt;
&lt;p&gt;Increase the maximum size of the transaction log file.&lt;/p&gt;
&lt;h3&gt;Option 1 - Using the SQL Server Management Studio interface&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;In Object Explorer, expand &amp;quot;Databases&amp;quot;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Right click the name of the project database and select Properties.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Go into the Files category and click the [...] button for the log file in the &amp;quot;Autogrowth&amp;quot; column.&amp;nbsp; The log file is probably named after the project database with a &amp;quot;_log&amp;quot; appended to the end of the file name.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Increase the value for Restricted Growth, perhaps start by doubling it.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Option 2 - Using a script&lt;/h3&gt;
&lt;p&gt;The following script, modified with the true database and log file name and desired log file size, could also be executed using SQL Server Management Studio or other means:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new,courier;"&gt;ALTER DATABASE myDB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new,courier;"&gt;MODIFY FILE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new,courier;"&gt;(NAME = myDB_log,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new,courier;"&gt;SIZE = 500MB);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="border-width:0px;" alt=" " height="60" src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" /&gt;&lt;/p&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align:right;"&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Avanti_K&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>