dbTalk Databases Forums  

sql size vs. access size

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss sql size vs. access size in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rob Wahmann
 
Posts: n/a

Default sql size vs. access size - 07-25-2003 , 11:56 AM






I have a SQL Server database that is showing 2853.44 mb in size but when I
export the data into MS Access the size is less than 1 mb. Can anyone tell
me how to reduce the size of my SQL Server database so that it's less than
15 mb?

Thanks in advance! Rob



Reply With Quote
  #2  
Old   
Greg D. Moore \(Strider\)
 
Posts: n/a

Default Re: sql size vs. access size - 07-25-2003 , 01:27 PM







"Rob Wahmann" <dotcomstudio (AT) sbcglobal (DOT) net> wrote

Quote:
I have a SQL Server database that is showing 2853.44 mb in size but when I
export the data into MS Access the size is less than 1 mb. Can anyone tell
me how to reduce the size of my SQL Server database so that it's less than
15 mb?
Umm, either you don't have nearly the data yu think you have (a 2000:1 ratio
is HUGE) or something very weird is going on.

For starters, make sure you're not including the transaction log in that
size.

If you are, do a transaction log backup and then truncate the transaction
log.


Quote:
Thanks in advance! Rob





Reply With Quote
  #3  
Old   
Greg D. Moore \(Strider\)
 
Posts: n/a

Default Re: sql size vs. access size - 07-29-2003 , 08:25 AM




"Rob Wahmann" <dotcomstudio (AT) sbcglobal (DOT) net> wrote

Quote:
Thanks guys! It is the log file and now I'm trying to figure out how to
reduce the size. The actual database is only 6 mb. I appreciate your help!

I'm guessing you have full logging turned on, but never do any transaction
log backups.

If you want full logging, make sure you do transaction backups.

If you don't care about full logging, use simple recovery mode.

If you want something quick and dirty try:

backup log foo with truncate_only

That will truncate the log file to the last active transaction. (note you
should do a full backup immediately after that.)


Quote:
Rob

"Rob Wahmann" <dotcomstudio (AT) sbcglobal (DOT) net> wrote in message
news:LidUa.25515$BM.8256484 (AT) newssrv26 (DOT) news.prodigy.com...
I have a SQL Server database that is showing 2853.44 mb in size but when
I
export the data into MS Access the size is less than 1 mb. Can anyone
tell
me how to reduce the size of my SQL Server database so that it's less
than
15 mb?

Thanks in advance! Rob







Reply With Quote
  #4  
Old   
Rob Wahmann
 
Posts: n/a

Default Re: sql size vs. access size - 07-29-2003 , 04:23 PM



Where exactly do I run these commands? I'm not very familiar with this stuff


Thanks again!

Rob


"Greg D. Moore (Strider)" <mooregr (AT) greenms (DOT) com> wrote

Quote:
"Rob Wahmann" <dotcomstudio (AT) sbcglobal (DOT) net> wrote in message
news:IqaVa.27485$BM.8916648 (AT) newssrv26 (DOT) news.prodigy.com...
Thanks guys! It is the log file and now I'm trying to figure out how to
reduce the size. The actual database is only 6 mb. I appreciate your
help!


I'm guessing you have full logging turned on, but never do any transaction
log backups.

If you want full logging, make sure you do transaction backups.

If you don't care about full logging, use simple recovery mode.

If you want something quick and dirty try:

backup log foo with truncate_only

That will truncate the log file to the last active transaction. (note you
should do a full backup immediately after that.)


Rob

"Rob Wahmann" <dotcomstudio (AT) sbcglobal (DOT) net> wrote in message
news:LidUa.25515$BM.8256484 (AT) newssrv26 (DOT) news.prodigy.com...
I have a SQL Server database that is showing 2853.44 mb in size but
when
I
export the data into MS Access the size is less than 1 mb. Can anyone
tell
me how to reduce the size of my SQL Server database so that it's less
than
15 mb?

Thanks in advance! Rob









Reply With Quote
  #5  
Old   
Greg D. Moore \(Strider\)
 
Posts: n/a

Default Re: sql size vs. access size - 07-29-2003 , 10:09 PM




"Rob Wahmann" <dotcomstudio (AT) sbcglobal (DOT) net> wrote

Quote:
Worked beautifully... thanks!

Not a problem.


Glad it worked. (I guess you figured out where to run them. :-)





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.