SQL Server: Cannot find data type date and unable to set compatibility
问题 I have a install script that uses DATE. I'm running SQL Server 2008 R2, and it doesn't like the date type. Msg 2715, Level 16, State 7, Line 1 Column, parameter, or variable #3: Cannot find data type date. So I tried setting the compatibility of the database to 100 using the following: ALTER DATABASE znode_multifront SET COMPATIBILITY = 100 I receive the following error: Msg 102, Level 15, State 1, Line 1 Incorrect syntax near '100'. So I tried going into SQLCMD mode and used the following: