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?
↧