August 11, 2010 at 11:32 am
No the database size did not change
August 11, 2010 at 11:54 am
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.
August 11, 2010 at 11:56 am
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
August 11, 2010 at 12:28 pm
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,
August 11, 2010 at 12:35 pm
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
August 11, 2010 at 12:38 pm
gui,
August 11, 2010 at 12:41 pm
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
August 11, 2010 at 1:00 pm
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.
August 12, 2010 at 6:46 am
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,
August 12, 2010 at 9:49 am
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
August 12, 2010 at 9:54 am
I ried shrinking database and datfiles but with no luck still the size is 31 Gb,
i used these,
DBCC SHRINKDATABASE
( msdb);
August 12, 2010 at 9:57 am
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
August 12, 2010 at 10:15 am
sysssispackagesNULL120312031990
sysmail_attachmentsNULL5105094330
sysobjvaluesclst418388329332
syscollector_blobs_internalPK_syscollector_blobs_internal_paremeter_name1201201000
syscolparsclst817977000
syscolparsnc413533000
syssoftobjrefsclst413331000
sysjobactivityclust342421000
sysmultiobjrefsclst333129000
sysobjkeycryptscl333230000
sysrscolsclst252018000
sysschobjsclst252220000
syssoftobjrefsnc1251917000
August 12, 2010 at 10:26 am
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
August 12, 2010 at 10:32 am
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