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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Shrink DB after port
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sql777
Constraint Violating Yak Guru

314 Posts

Posted - 01/03/2003 :  10:45:14  Show Profile  Reply with Quote
I just ported my database to a new design. How can I shrink/purge the new database of all its logs etc as to shrink it? The db is at 50 megs right now and I think its a tad bit to big.

What should I purge it off? i.e logs...what else?

(Scripts please)

Page47
Flowing Fount of Yak Knowledge

USA
2878 Posts

Posted - 01/03/2003 :  10:48:47  Show Profile  Reply with Quote
http://www.sqlteam.com/SearchResults.asp?SearchTerms=shrink

Jay White
{0}
Go to Top of Page

harshal_in
Aged Yak Warrior

India
633 Posts

Posted - 01/04/2003 :  01:43:04  Show Profile  Visit harshal_in's Homepage  Send harshal_in a Yahoo! Message  Reply with Quote
quote:

I just ported my database to a new design. How can I shrink/purge the new database of all its logs etc as to shrink it? The db is at 50 megs right now and I think its a tad bit to big.

What should I purge it off? i.e logs...what else?

(Scripts please)






Detach the database
delete the logfile
attach the database back
this will create a new log file for u.
regards,
harshal.

Expect the UnExpected
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000