Possible Duplicate:
Downgrading from SQL Server 2008 to 2005

Is it possible to copy the database schema from SQL Server 2008 to SQL Server 2005,

I don't need data from the tables, just the empty database structure with triggers, stored procedures, ...

marked as duplicate by Marian, gbn, JNK Jun 3 '12 at 11:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


If you aren't using any SQL2008+ only features (e.g. compression) you will be able to script out the objects you require and execute in SQL2005. If you're not sure if any SQL2008+ features are in use, trial and error (script and execute, see what happens) will soon tell you where the problems are.

This is very different to restoring a backup from 2008 to 2005, which is not possible.

Not the answer you're looking for? Browse other questions tagged or ask your own question.