SQL on prime databse size growing exponentially

dileep kumar 1 Reputation point
2020-09-16T05:40:12.373+00:00

Hi Experts,

we have built a database with ssis packages on Dev which sized 29 gb and recovery model in simple and moved to prod and scheduled to run once in every day. after couple of months we found db size is around 300 gb in PROD with same data as in DEV (300 gb vs 30 gb) with prod database recovery model in FULL and every hour logbackups been taken with 1 full backup per day. can anyone help me what is going on , the goal is get DB same sized as dev.
I am pretty sure the latency between DEV and PROD is one day. why the size vary that much. also noticed every day db size growing by around 5 to 16 GB. please help.

Thanks,
ADKR

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,361 questions
{count} votes

4 answers

Sort by: Most helpful
  1. m 4,271 Reputation points
    2020-09-16T08:31:19.267+00:00

    Hi @dileep kumar ,

    Run code as next and post the output here:
    --1.Check the log current usage and database status.

    DBCC SQLPERF(LOGSPACE)  
    GO  
      
    SELECT name, recovery_model_desc, log_reuse_wait,log_reuse_wait_desc  
     FROM sys.databases  
    GO  
    

    BR,
    Mia


  2. tibor_karaszi@hotmail.com 4,306 Reputation points
    2020-09-16T09:07:51.297+00:00

    Perhaps you have heap tables? SQL server is known for being bad at releasing space for heaps.


  3. Tom Phillips 17,721 Reputation points
    2020-09-16T13:05:28.963+00:00

    Is it the data file or the log file which is growing? Also, please post the results of SELECT @@VERSION.

    Are you running replication or AlwaysOn on the database?


  4. m 4,271 Reputation points
    2020-09-17T02:07:47.623+00:00

    Hi @dileep kumar ,

    Any updates?

    BR,
    Mia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments