Smaller Database

I have an application in VB 2005 Express with a SQL Server database.  I added large amounts of data for debugging purposes.  However, I want to ship an empty database, so I deleted all of my data, yet the database did not go back to its original smaller size.  Is there a reason for this, or anyway to correct it   Thanks

-Aviatordave



Answer this question

Smaller Database

  • CPrecourt

    If it's a SQL database, just export the database shema. You can import the schema again into the new server. You dont' have to export the data (if any)

    The files are still big because the tables won't autoshrink. if they grew and shrunk automatically, it would slow it down considerably.


  • BillFugina

    That sounds like it would probably work, except I have no idea how to do that, and I couldn't find anything in the documentation. Can anyone stear me in the right direction on how to do that Or have any other ideas.

    Thanks!
    Aviatordave


  • Smaller Database