Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Unused Space--Eyes popped !!

Author  Topic 

Muzaffar557
Starting Member

11 Posts

Posted - 2012-01-14 : 06:41:23
Hi There.
I used the below query for each table
EXEC sp_spaceused @tableName --In a loop for each table

The data is as follows:: and on ()
name rows reserved data index_size unused
DamageReport 471 184 KB 96 KB 56 KB 32 KB
PRJMAT 4144 320 KB 88 KB 8 KB 224 KB
grvdesc 29818 37640 KB 8576 KB 16 KB 29048 KB
BatchingPlantLab 5566 1288 KB 816 KB 8 KB 464 KB
.
.

Total Unused Space is 4.5GB !!!!!!!
Is there any way to free this unused space ??
Note:SQL server 2005 Enterprise Edition

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-01-14 : 15:06:26
Unless you're low on disk space, there's no need to reclaim that space (and 4.5 GB is nothing to get excited about). Shrinking to regain space will merely fragment your data and cause performance problems.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-01-14 : 19:35:21
Show us the output of sp_spaceused at the database level (don't pass it a parameter).

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2012-01-15 : 00:33:19
Where there any deletes done lately ?

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

Muzaffar557
Starting Member

11 Posts

Posted - 2012-01-15 : 02:42:07
quote:
Originally posted by robvolk

Unless you're low on disk space, there's no need to reclaim that space (and 4.5 GB is nothing to get excited about). Shrinking to regain space will merely fragment your data and cause performance problems.




Bro i know but management is asking to do it.
I need to reduce it any how at any cost .
So how do i reclaim unused space
Go to Top of Page

Muzaffar557
Starting Member

11 Posts

Posted - 2012-01-15 : 02:44:17
quote:
Originally posted by Sachin.Nand

Where there any deletes done lately ?

After Monday and Tuesday even the calendar says W T F ....



This database is for entire ERP. So deletion is obvious.
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2012-01-15 : 04:46:01
What I meant was where there any huge deletes done lately ?

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

Muzaffar557
Starting Member

11 Posts

Posted - 2012-01-15 : 06:04:11
quote:
Originally posted by Sachin.Nand

What I meant was where there any huge deletes done lately ?

After Monday and Tuesday even the calendar says W T F ....



Huge deletion , yes i usually do it when bulk insert data is wrong.

But actually our data is 2 GB the rest 6 GB is crap !
Unable to take daily bakup !
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2012-01-15 : 06:24:52
I would rather leave it the way it is as Rob pointed in the previous post and mail the link below to the management.

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=170213



After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page
   

- Advertisement -