Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. MS SQL server developer 2019 occupied 300G on my C drive

MS SQL server developer 2019 occupied 300G on my C drive

Scheduled Pinned Locked Moved The Lounge
databasesql-serversysadminquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Southmountain
    wrote on last edited by
    #1

    I installed MS SQL server developer 2019 edition last year. but now I find it occupied almost 300G on my C drive. the total size of my C drive is 500G, so I have to uninstall this SQL server 2019 instance to get enough space to install new Windows patches. what's wrong with my SQL sever developer 2019 installation?

    diligent hands rule....

    J Richard DeemingR 2 Replies Last reply
    0
    • S Southmountain

      I installed MS SQL server developer 2019 edition last year. but now I find it occupied almost 300G on my C drive. the total size of my C drive is 500G, so I have to uninstall this SQL server 2019 instance to get enough space to install new Windows patches. what's wrong with my SQL sever developer 2019 installation?

      diligent hands rule....

      J Offline
      J Offline
      Jacquers
      wrote on last edited by
      #2

      Check the database sizes. One or more of them may have grown. Maybe time to shrink some log files.

      S 1 Reply Last reply
      0
      • S Southmountain

        I installed MS SQL server developer 2019 edition last year. but now I find it occupied almost 300G on my C drive. the total size of my C drive is 500G, so I have to uninstall this SQL server 2019 instance to get enough space to install new Windows patches. what's wrong with my SQL sever developer 2019 installation?

        diligent hands rule....

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        As Jacquers said, it's probably your database files. Specifically, if you have the "recovery model" set to "full", and you're not taking regular backups of the transaction logs, they will just keep growing. You can check the log_reuse_wait_desc column in the sys.databases management view to check for other reasons why the transaction logs might not be shrinking.

        SELECT name, recovery_model_desc, log_reuse_wait_desc FROM sys.databases ORDER BY name;


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        S 1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          As Jacquers said, it's probably your database files. Specifically, if you have the "recovery model" set to "full", and you're not taking regular backups of the transaction logs, they will just keep growing. You can check the log_reuse_wait_desc column in the sys.databases management view to check for other reasons why the transaction logs might not be shrinking.

          SELECT name, recovery_model_desc, log_reuse_wait_desc FROM sys.databases ORDER BY name;


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          S Offline
          S Offline
          Southmountain
          wrote on last edited by
          #4

          I run this query and here is my result:

          Name recovery_model_desc log_reuse_desc
          AdventureWorks SIMPLE NOTHING
          master SIMPLE NOTHING
          model FULL NOTHING
          msdb SIMPLE NOTHING
          tempdb SIMPLE NOTHING

          Do I have any issue with these tables?

          diligent hands rule....

          1 Reply Last reply
          0
          • J Jacquers

            Check the database sizes. One or more of them may have grown. Maybe time to shrink some log files.

            S Offline
            S Offline
            Southmountain
            wrote on last edited by
            #5

            I used a free tool to check the file size and find the SQL log file folder is with the biggest size:

            5.| PATH: Program Files\Microsoft SQL Server\MSSQL15.Peaker\MSSQL\Log | SIZE: 346.30 Gb | DEPTH: 5

            how to shrink these log folder size?

            diligent hands rule....

            J 1 Reply Last reply
            0
            • S Southmountain

              I used a free tool to check the file size and find the SQL log file folder is with the biggest size:

              5.| PATH: Program Files\Microsoft SQL Server\MSSQL15.Peaker\MSSQL\Log | SIZE: 346.30 Gb | DEPTH: 5

              how to shrink these log folder size?

              diligent hands rule....

              J Offline
              J Offline
              Jacquers
              wrote on last edited by
              #6

              Checking table sizes in a database: DECLARE @str VARCHAR(500) SET @str = 'exec sp_spaceused ''?''' EXEC sp_msforeachtable @command1=@str Shrinking the database and logs: ALTER DATABASE [database name] SET RECOVERY SIMPLE WITH NO_WAIT; DBCC SHRINKFILE('database name', 1); ALTER DATABASE [database name] SET RECOVERY FULL WITH NO_WAIT;

              S 1 Reply Last reply
              0
              • J Jacquers

                Checking table sizes in a database: DECLARE @str VARCHAR(500) SET @str = 'exec sp_spaceused ''?''' EXEC sp_msforeachtable @command1=@str Shrinking the database and logs: ALTER DATABASE [database name] SET RECOVERY SIMPLE WITH NO_WAIT; DBCC SHRINKFILE('database name', 1); ALTER DATABASE [database name] SET RECOVERY FULL WITH NO_WAIT;

                S Offline
                S Offline
                Southmountain
                wrote on last edited by
                #7

                thank you for your tips! I learned new things from you. I think I find the reason: my PolyBase feature is not installed correctly, so it caused SQL server keep dumping big files. Now I fixed this problem.

                diligent hands rule....

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups