I\'ve got a DATETIME column in a SQL Server 2008 table called ShiftDate. I want to convert this to a DATE column in a query:
SELECT ID, ScheduleID, Shift
The problem is with the name ShiftDate of the attribute in the underlying table. When renamed to something that does not contain the word Date as the last characters, the view works. Try renaming to ShiftDateDD for example.