I am trying to create a table with a database field of type DATE in SQL Server 2008 R2, but every time I try, I get this message:
Column, parameter, or variable #10: Cannot find data type date.
Now I know this datatype is permitted with 2008 r2, so what is going on?
I am trying to create this table within Microsoft SQL Server Management Studio.
Are you sure you are running against a SQL Server 2008 R2 instance? Is it possible that you are using the SQL Server 2008 R2 version of Management Studio, but connecting to SQL Server 2005? What does
SELECT @@VERSION;yield?