I have a script that was generated in SQL Server 2008, but I need to execute it against a SQL Server 2005 database.
What would an equivalent statement for the following
In the script generation wizard set the option Script For version to SQL 2005 that should give you the right script.