When I am executing the below query with SELECT * I am getting the following error :
[S0005] Error converting data type nvarchar to bigint.
When I am executing this query only with SELECT id , ROW_NUMBER() ... everything works.
My database looks like this:
This query runs well with the other table where the id column is NVARCHAR
The ID column is number only and if I cast it as CAST I get the same error.