SQL problem with zenOn 6.21 - huge project-log file

SQL problem with zenOn 6.21 - huge project-log file

The project-log file (SQL Server Database Transaction file) in the SQL directory of the project constantly grows and requires several GigaBytes on the harddisk


Under very specific circumstances it can happen that the shrink action (especially doing it via the batch file) leads to a corrupt Log-File and thus the Database itself can not be read anymore.

Due to some reasons the SQL-Log-File of a database can reach indeed a very huge size (this behaviour belongs to default settings of the MS SQL Server).
However, it is possible to shrink this file (Note: do not delete this Log-File!! Otherwise important links can get lost and the project itself would be corrupt).
On the zenOn DVD there exists a SQL-Manager Software which can handle this issue (see Additional_Software\MSSQL_Express\ -> SQLServer2005_SSMSEE.msi)

Please follow the steps below after you have installed the software mentioned above:

  • create a project-backup (just for safety)
  • start the program SQL Server Management Studio Express
  • connect to the SQL Server (probably SQL Server (ZENON_DEV))
  • select the database (GUID) which should be shrinked (i.e. 0b1b379e-7a6d-43b6-9aa6-39cc5065c984)
  • right-click at this database and select properties ("Eigenschaften")
  • go to options ("Optionen") and at the recovery model ("Wiederherstellungsmodel") choose simple ("einfach") and close this dialog
  • right-click at the database again, choose tasks -> shrink database -> files ("Aufgabe -> Datenbank verkleinern -> Dateien")
  • select at datatype protocol (Project_Log will be automatically choosen at filename)
  • after pressing OK the Log-File will be shrinked (this process needs about 2-3 seconds -> depends on the size)


  • This is a migrated post! Originally posted on 03.12.2007 by user herberto. Please be aware that information can be outdated.

      Disclaimer

      This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

      The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

      Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

      Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

      COPA-DATA reserves the right to change this document from time to time at own discretion.


      Ing. Punzenberger COPA-DATA GmbH
      Karolingerstraße 7b · 5020 Salzburg · Austria
      www.copadata.com