“Cannot call methods on BIGINT” error

2019-09-05 05:50发布

I have a T-SQL query that I've been beating on for a while, it seems simple, but I get an error in the query designer when I try to execute it:

SELECT     Date, CAST(Date AS bigint) AS DateNum, Title, Earnings
FROM         dbo.Analysis_001

Whenever I try to execute/modify this in the designer, I get "Cannot call methods in BIGINT" as a pop-up error. Out of frustration, I tried executing it using "CREATE VIEW" and it worked... Why?

1条回答
欢心
2楼-- · 2019-09-05 06:24

It's a bug:

Related question: SQL Server Cannot Call Methods on Date

查看更多
登录 后发表回答