When I want to attach database, an error occurs:
The database \'Almizan\' cannot be opened because it is version 661.
This server supports versi
The this answer on the MSDN seems to tell us the obvious http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/01ed3b1c-6f29-4518-a3a4-e4e35decc05f/
When you attached the database to SQL Server 2008 to compress it the database has automatically been upgraded from SQL 2005 to to SQL Server 2008 from the disk structucture point of view. An internal upgrade script has been run and has modified the on-disk structure of the database to that new version. This can be seen at the version 655. Once this has been done you can no longer attach the upgraded database to a lower version of SQL Server, it will fail with the error you've seen.
This has nothing to do with the compatiblity level of the database. The compatabilty level only prevents the engine from using some of the new features.
In order to get the database on SQL Server 2005 again you will need to create the database freshly and export/import the data, for example by using the Export/Import Wizard.
Ulrike - MSFT