I generate script of my database (types of data to script = schema and data) from SQL Server 2008 R2 and run this script in SQL Server 2005, it shows me these errors:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '100'.Msg 102, Level 15, State 6, Line 1
Incorrect syntax near 'HONOR_BROKER_PRIORITY'.Msg 2812, Level 16, State 62, Line 1
Could not find stored procedure 'sys.sp_db_vardecimal_storage_format'.
at State 1, Line 1
ALTER DATABASE [MYDATABASE] SET COMPATIBILITY_LEVEL = 100
at State 6, Line 1
ALTER DATABASE [MYDATABASE] SET HONOR_BROKER_PRIORITY OFF
at State 62, Line 1
EXEC sys.sp_db_vardecimal_storage_format N'MYDATABASE', N'ON'
How can I fix this ?