SQL Server Cannot Call Methods on Date

后端 未结 11 1470
时光取名叫无心
时光取名叫无心 2020-12-16 10:41

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         


        
11条回答
  •  心在旅途
    2020-12-16 11:01

    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.

提交回复
热议问题