Link to home
Start Free TrialLog in
Avatar of lrpage
lrpage

asked on

how to compress / shrink an msde 2000 database

I have a windows 2000 server running msde.  It now has a database file that is almost 2 gb, the max it will allow.  I know one of my options is to move it to a sql standard server, but this database is just not worth the work or cost.  I have cleaned out some of the junk data in the database.  I am hoping I can run some sort of maintenance on the database to compress/shrink/defrag it.  It looks like I will be using the osql command, but I can only find documentation on how to use this to backup, move or restore the file, not perform any other maintenance on it.  Any advice would be helpful
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

if the file size has grown to 2GB, keep it there. if you cleaned out some tables, there will be free space available for new records
ASKER CERTIFIED SOLUTION
Avatar of terjoh
terjoh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lrpage
lrpage

ASKER

That was the command I was looking for.  Thank you.