My MSDB Database is over 31 GB in the development server

  • No the database size did not change

  • Well, the database size isn't going to change unless you shrink the database, but the amount of free space may have change. Do another right click on msdb > Reports > Standard Reports > Disk Usage. Hopefully in the right chart, you unallocated is a very high percentage.

  • Another alternative to that report is to re-run the last query that you ran showing the values for the sysxmit... table.

    Run that query and post back the values returned for the top 10 or so rows.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • I see almost all in green color and says Unallocated, but even if I shrink the files and data the size still stays the same,

  • What is the process you are using to try and shrink the files?

    through the gui, via script?

    If script are you using dbcc shrinkdb or shrinkfile?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • gui,

  • i recommend you use the dbcc shrinkfile.

    Script it out in a script window and you will probably have greater success.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Shrinking the file is an important first step, and it will definitely help your immediate need. I want to reiterate, however, that it is not a long-term solution. You will have the same problem again unless you find the root cause.

  • Hello,

    I found this syntax, could you please edit it for my need,

    DBCC SHRINKDATABASE

    (database_name | database_id | 0

    [ ,target_percent ]

    [ , { NOTRUNCATE | TRUNCATEONLY } ]

    )

    [ WITH NO_INFOMSGS ]

    Thanks,

  • Lookup DBCC Shrinkfile. I believe you will have greater success with that.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • I ried shrinking database and datfiles but with no luck still the size is 31 Gb,

    i used these,

    DBCC SHRINKDATABASE

    ( msdb);

  • Re-run this query and post back the results:

    USE [msdb]

    SELECT object_name(i.object_id) as objectName,

    i.[name] as indexName,

    sum(a.total_pages) as totalPages,

    sum(a.used_pages) as usedPages,

    sum(a.data_pages) as dataPages,

    (sum(a.total_pages) * 8) / 1024 as totalSpaceMB,

    (sum(a.used_pages) * 8) / 1024 as usedSpaceMB,

    (sum(a.data_pages) * 8) / 1024 as dataSpaceMB

    FROM sys.indexes i

    INNER JOIN sys.partitions p

    ON i.object_id = p.object_id

    AND i.index_id = p.index_id

    INNER JOIN sys.allocation_units a

    ON p.partition_id = a.container_id

    GROUP BY i.object_id, i.index_id, i.[name]

    ORDER BY sum(a.total_pages) DESC, object_name(i.object_id)

    ;

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • sysssispackagesNULL120312031990

    sysmail_attachmentsNULL5105094330

    sysobjvaluesclst418388329332

    syscollector_blobs_internalPK_syscollector_blobs_internal_paremeter_name1201201000

    syscolparsclst817977000

    syscolparsnc413533000

    syssoftobjrefsclst413331000

    sysjobactivityclust342421000

    sysmultiobjrefsclst333129000

    sysobjkeycryptscl333230000

    sysrscolsclst252018000

    sysschobjsclst252220000

    syssoftobjrefsnc1251917000

  • I don't see the sysxmit table listed anymore. Does that show up in your results?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • I even ran that,

    USE msdb

    EXEC sp_spaceused sysxmit

    it did not find the table, I do not see that any more but stll msdb is about 32 GB

Viewing 15 posts - 46 through 60 (of 71 total)

You must be logged in to reply to this topic. Login to reply