c# - There was an error parsing the query. [ Token line number = 1,Token line offset = 39,Token in error = ( ] -
i'm working in winforms application. requirement loading data sql on demand(i.e load 100 records page, when moves page). tried below sqlcommand throws exception @ place of "row_number()" syntax in below command,
select * (select * , row_number() (order [id]) rownum [tblvgtest] [id]) temp rownum between 0 , 100
please let me know, there mistakes in command or provide suggestion scenario.
thanks
you forgetting using over()
clause row_number
.
try following query.
select * (select * , row_number() on (order [id]) rownum [tblvgtest] ) temp rownum between 0 , 100
i have removed where
clause not having criteria. can put if it's required you.
Comments
Post a Comment