Shrink a SQL Anywhere 12 database

shrinksybase-sql-anywhere

Is there any way to shrink SQL Anywhere databases?

With SQL Server, it was an easy task. Just do it, have a faster database again that has a size which can be transferred over a slow internet connection.

Can this be achieved with Sybase?

The question is not whether you should shrink or not – it is how it is done. So please don't quote things like "you should not" from Pinal.

Best Answer

You can't shrink SQL Anywhere databases online.

The "correct" way to do it is to unload/reload it in a new database.

It's easy to do it via Sybase Central. Via command line it is the dbunload command with the -an command line switch. See Unload utility (dbunload) in the documentation.

A shrunk database is not by default faster than an "unshrinked" database.