Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Operand type clash: int is incompatible with date

$
0
0
Hello, i have been trying to solve this for sometime but i cant get around it. hopefully somebody can help me out here.this is a piece of my code: SELECT TOP 1000 *... case when Rownum<= datediff(day, salesdate, baseenddate) then DATEADD(mm, RowNum, salesdate) /*error at this point*/ else 0 end as subscriptionrowdate FROM SubsrowRownum is an integer type. DATEADD is the part when the error is but i dont know how to convert this to int :(Any suggestions?

Viewing all articles
Browse latest Browse all 3145

Trending Articles