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
 General SQL Server Forums
 New to SQL Server Administration
 DATABASE FILE SIZE

Author  Topic 

cbeganesh
Posting Yak Master

105 Posts

Posted - 2011-06-14 : 12:40:49
i have a db of size 93 Gb, there is one huge table with 200 million rows. if i move the table to a diffrent filegroup , will be database size get reduced. The reason im asking is the backups has been failing due to insufficent disk space. so trying to make the backup work.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-06-14 : 12:55:48
If I move my cupboard from one room to another room will the size of the cupboard get reduced? No.

Look for a drive with more diskspace for the backup file.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-06-14 : 13:09:44
quote:
If I move my cupboard from one room to another room will the size of the cupboard get reduced? No.
I don't know about you, but whenever I have to move something that big, and I disassemble it, I always end up losing the hardware, and the instructions, and I hammer on it and glue it and duct tape it together, or try to, until I just give up and lay it on its side and PRESTO! new table. And it's smaller than the original, minus the extra pieces I throw away.

/stupid Ikea furniture
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-06-14 : 13:15:28
If you are using SQL Server 2008, you could take a look at compression.

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

Subscribe to my blog
Go to Top of Page

cbeganesh
Posting Yak Master

105 Posts

Posted - 2011-06-14 : 13:35:01
i have sql server 2000
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-06-14 : 13:39:09
Then the only way to reduce the size is to delete data, provided your database isn't heavily fragmented. Have you rebuilt the indexes?

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

Subscribe to my blog
Go to Top of Page

newdba
Starting Member

30 Posts

Posted - 2011-06-14 : 13:58:08
have you tried shrinking it ?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-06-14 : 14:00:11
Shrinking will not help with the backup file size, it'll only help if the database files and the backups are on the same disks AND there is free space in the database files.

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

Subscribe to my blog
Go to Top of Page

cbeganesh
Posting Yak Master

105 Posts

Posted - 2011-06-16 : 17:16:49
that huge table does not have index
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-06-16 : 17:27:39
Lol, I assume it's slow to query it then.

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

Subscribe to my blog
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2011-06-16 : 18:49:19
Sounds like you need to get more space...what does this database store anyway?

How many tables does it have?

200 million rows is that much...not to get you to 93GB

Is this a "warehouse"



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -