Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
Licensing, Cloud and Web Services
  • Welcome to Bentley Communities
  • Bentley's Communities
  • Licensing, Cloud and Web Services
  • More
  • Cancel
Licensing, Cloud and Web Services
Licensing, Cloud and Web Services Wiki Database size out of proportion
    • Sign in
    • Eastern Europe Continuity Plan
    • Guest Accounts - Review Access
    • +Web Services
    • +SES Activation
    • +CONNECTION Client
    • +CONNECT Advisor
    • +Federated Identity
    • -SELECTserver based Activation
      • Understanding the (Legacy) SELECTserver Workflow
      • +Deployed SELECTserver Application Usage TechNotes and FAQs
      • Activating Against SELECTserver OnLine (a Bentley hosted server)[TN]
      • Activating Applications Using SELECTserver Based Licensing as a non-SELECT User
      • Activating Non-Licensed Trial Mode Software
      • Activation of Client Side Products and Registry Basics
      • Client Check In and Out Instructions for XM and Higher [TN]
      • Importing a Checked Out License (XML file) for XM and Higher [TN]
      • Disconnected Mode [FAQ]
      • Generating a License Debug Log
      • +License Management Tool
      • Product Activation [FAQ]
      • Product Activation Modes of Behavior
      • Renewal Process for All Licensing
      • Server does not support this Activation Key
      • Troubleshooting Product Activation for XM and Higher
      • -SELECTserver TechNotes and FAQs
        • "An Error Has Occurred" when manually transmitting usage logs using a preconfigured URL
        • About SELECTserver
        • Connecting to the Bentley servers through Firewalls and Proxy Servers [FAQ]
        • Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel...'
        • Data Update Service Warning [TN]
        • Database Maintenance
        • Database Setup Tool Configuration and Explanation [FAQ]
        • Deployed SELECTserver Database and Internet Connectivity Insight [TN]
        • Deployed SELECTserver issue with new Bentley SSL certificate
        • Deployed SELECTserver Knowledge Requirements [TN]
        • Deployed SELECTserver Technical Requirements [TN]
        • Enabling Diagnostic Logging for SELECTserver
        • Error 1068: Cannot start the Bentley SELECTserver service
        • Error 417 : in SELECTserver and GateWay logs
        • Glossary Of Licensing Terms [FAQ]
        • Group Policy Administration (ADM) files
        • How do I keep usage reports current?
        • How do I set up or prevent license checkouts?
        • How to create a new website in IIS7
        • How to create a Virtual Directory in IIS7
        • How To Install a Gateways on Vista and Windows 7, Server 2008
        • How to Install the SELECTserver application
        • HTTP Error 404.13 "The request filtering module is configured to deny a request that exceeds the request content length" when importing response file
        • HTTP Error 500.21 - Internal Server Error on SELECTserver Administrative Site
        • Import xml File on Deployed Server
        • IP Address Hosted Server
        • License and SELECTserver Administration [FAQ]
        • +License Manager
        • License Tool Command Line Options
        • Manual Installation of SQL Express (2008 - 2012)
        • Moving (relocating) the SELECTserver application to a new server.
        • Moving Your SELECTserver Database
        • +Older SELECTserver Versions
        • Opening Administration Site
        • Restricting access to a deployed SELECTserver Administration Site. Configuration example (video).
        • Running the Data Update Service and restarting IIS in order to immediately update a deployed license
        • Security [FAQ]
        • SELECT Server 08 11 Series [CS]
        • -SELECTserver
          • Access restriction via IP-address
          • Access to App_Offline.htm denied in SELECTserver Database Setup
          • +Administration - SELECTserver
          • Administration page does not open, page cannot be displayed
          • Create a log file on the client computer
          • Deployed SELECTserver Logs
          • Hosted server Administration page - Access for administrators only
          • How to start the Deployed SELECTserver and SELECTserver Gateway service via Windows Services
          • -Installation / Configuration - SELECTserver
            • Converting from a Deployed SELECTserver to Bentley CONNECT SELECTservices
            • +Group Policies - Installation / Configuration - SELECTserver
            • How do I install SELECTserver?
            • How to install SELECTserver in a secure environment
            • +IIS Configuration - Installation / Configuration - SELECTserver
            • SELECTserver and SELECTserver Gateway in a Cloud Environment
            • +SQL Installation - Installation / Configuration - SELECTserver
            • -SQL Management - Installation / Configuration - SELECTserver
              • Database size out of proportion
              • Error Truncating Usage Data
              • Error: Database not ready
              • Error: SQL Transaction Logs are Full
              • How do I control the growth of my SELECTserver license database?
              • Migrating a license database using SQL Server Management Studio
              • Setting up SELECTserver in a DMZ
              • Unable to start the SELECTserver service
            • +Windows Installer Errors - Installation / Configuration - SELECTserver
          • +Installation / Configuration - SQL Management
          • MSG_HIST_PEAK message on Deployed Administration page
          • No access to the Adminstration page
          • Ports and Domains
          • Process Responce File
          • Program starts up slowly after the creation of a log file
          • Reset the webserver IIS
          • Response File larger than 7.93 MB - Error 404
          • Restrict access to the Hosted Administration page
        • SELECTserver 9 Known Issues
        • SELECTserver 9.xx.xx.xx Gateway Update Process [FAQ]
        • SELECTserver 9.xx.xx.xx Upgrade Information [FAQ]
        • SELECTserver Database Backup [TN]
        • +SELECTserver Gateway
        • SELECTserver Gateway error 1053
        • SELECTserver Gateway error 1067
        • SELECTserver Gateway Explained
        • SELECTserver Gateway License Server Revoked License [TN]
        • SELECTserver Gateway Service Fails To Connect through Proxy Server [TN]
        • SELECTserver General [FAQ]
        • SELECTserver in a IPV6 Environment
        • SELECTserver Notifications
        • SELECTserver Online Technical Requirements [FAQ]
        • SelectServer V9 without connectivity and Bentley Passport
        • SELECTserver XM Database Backup [TN]
        • SQL Server 2005 Cachestore Flush Error
        • SQL Server Compatibility Mode - Internal Query Processor Error
        • The response file corresponding to the following logs is not processed.
        • The SQL transaction logs are full
        • Transmit Usage Logs - 0 Logs Found To Process [TN]
        • Trust Licensing Basics [FAQ]
        • Unlock the SQL Server SA Account
        • Usage Log Processing - ERROR with status code 15014
        • Using Active Directory Group Policy Objects to Configure Licensing for Users Centrally (video).
        • What options are available to allow the external (WAN) user to access a Locally Deployed SELECTserver?
        • What's New in the latest SELECTserver?
      • Where do I find my Activation Key?
      • Stopping SELECTserver Activation Key based Usage
    • +Pre-SELECTserver Based Activation
    • +Product-Specific Licensing
    • Understanding why you received a TL Invoice
    • Working from Home using Bentley Licensing
    • +Licensing Workflow
    • How to leave a Product Review
    • +Serviços ProjectWise 365
    • About Bentley Trust Licensing
    • How to delete Bentley account and all related data
    • Support for non-Bentley technologies utilized by Bentley products
    • Support for V8i SELECTseries 10 applications after December 31st, 2021
    • +Support Homepage - Localized
    • What you need to know/request when consolidating Accounts

    Database size out of proportion

       
      Applies To 
       
      Product(s): SELECTserver
      Version(s): 08.09.03.48
      Environment:  N\A
      Area:  Installation / Configuration
      Subarea:  SQL Management
      Original Author: James White, Bentley Technical Support Group
       

    Problem

    GENERIC:
    SQL Server Databases
    The .mdf file is Relatively small in size, but the .ldf is many more times in size! It seems pretty out of proportion.

    SQL Server 2005 Workgroup
    The .mdf file is just over 50MB in size, but the .ldf is just over 12GB in size! It seems pretty out of proportion.

    Solution

    It would be best to follow Microsoft best practices for SQL Server shrinking databases and transaction logs:

    Shrinking a Database
    http://msdn.microsoft.com/en-us/library/ms189080.aspx

    Shrinking the Transaction Log
    http://msdn.microsoft.com/en-us/library/ms178037.aspx

    How to use the DBCC SHRINKFILE statement to shrink the transaction log file in SQL Server 2005
    http://support.microsoft.com/kb/907511

    Shrinking the Transaction Log in SQL Server 2000 with DBCC SHRINKFILE
    http://support.microsoft.com/kb/272318/

    ADDITIONAL INFO:
    The ldf file is where SQL Server stores the transactions. SQL Server is a transactional database and there to protect data from system crashes.When a user such as SELECTServer inserts, updates or deletes a row into the db it will start a transaction do its operation then end the transaction which will commit the data. This operation is stored in the lfd file until the next backup is run. You must be careful if you restrict the size of the ldf because when it gets full it will prevent any further inserts, deletes or updates to the database. Part of a databases maintenance is to do backups. Doing full
    backups will shrink the database by rolling all the committed transactions into the mdf.
    SQL Server 2000 Backup and Restore http://technet.microsoft.com/en-us/library/cc966495.aspx

    Causes of SQL Transaction Log Filling Up
    http://support.microsoft.com/default.aspx/kb/110139

    A transaction log grows unexpectedly or becomes full on a computer that is running SQL Server
    http://support.microsoft.com/default.aspx/kb/317375

    There are settings for SQL Server that one can enable to auto-shrink the database. DBCC SHRINKDATABASE

    DBCC SHRINKFILE
    The user should consider and lay out the best plan to maintain, backup and monitor the database system. Backing up the database is what I would recommend is the first step.

    See Also



    • Migrated
    • SELECTsupport
    • Share
    • History
    • More
    • Cancel
    • James White Created by Bentley Colleague James White
    • When: Mon, May 5 2014 10:23 AM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2022 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies