Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to compact a database

Status
Not open for further replies.

JazzMaan

Programmer
Joined
Jun 15, 2004
Messages
57
Location
US
hi

i am new to sql server.

how can i compact a database, in access compacting the database removes all extra stuff from system tables etc

i have deleted records that are using identy fields, and i want to insert the values that have been taken by those identy values.

thanks
 
Lookup DBCC SHRINKFILE or DBCC SHRINKDB in BOL.
 
thanks

but i was told by someone that shrink in my case dosent clear out the used identy values.

i droped and recreated the table .. and that worked

 
JazzMan,

You were told correct. The SHRINK commands only remove empty space from the database or log.

I don't think SQL Server has anything comparable to MS Access' compact database ability.

-SQLBill

Posting advice: FAQ481-4875
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top