Maintenance Database on SQL Server

  • Maintenance Database on SQL Server

    Posted by Howard Blitstein on September 15, 2023 at 11:19 am

    Hope I don’t embarrass myself with this question, but my server guy is telling me that the Maintenance database that sits on our SQL server where GP is installed has grown enough that we are running out of drive space. Luckily this only occurring in our test environment. It is about 62GB. Production side is only 6GB. Running a couple of the tables in it does show WhoIsActive and you can see Select statement and things like that. The command.log table does show things like Update Statistics for GP tables. This Maintenance db is not on any of our other non-GP servers, so I am puzzled. If it is something that GP created, or maybe a third party and what is it doing? Can I truncate it? Why is Production’s version so small where I have hundreds of GP users hitting it every day, where I am really the only one in test and it is growing out of control.

    Sorry for the rambling.

    HB

    Jeff Woodard replied 1 week, 1 day ago 2 Members · 1 Reply
  • 1 Reply
  • Jeff Woodard

    Member
    September 15, 2023 at 11:39 am

    A quick check to do would be to look at your db recovery model for the ‘maintenance’ database(s) using SSMS. If it’s set to ‘Full’ (the default), then all your space is likely tied up in transaction log files. If it’s set to anything other than ‘Simple’, (and since it’s a test db), you can recover the disk space by simply running a backup of that database (which will remove all of the transaction log files), then change the recovery model to ‘simple’, and it will no longer create transaction log files.

Welcome to our new site!

Here you will find a wealth of information created for people  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!