Initial sorting fails in MSSQLServer

QuestionsInitial sorting fails in MSSQLServer
Bruce Grant asked 11 years ago

Hi, working well with SQL Server (mssqlnative 11.0) except if I add:
$grid["sortname"] = 'fieldname';
The load fails with "The number of rows in the TOP clause must be an integer..
select top (10+0) * FROM…"
SQL Server won't support the (10+0) expression.
Problem only if $grid["sortname"] is specified.
Thanks

1 Answers
Bruce Grant answered 11 years ago

Resolved – it was a problem with the field name, not with the SQL syntax.
Ignore the above. Thanks!

Your Answer

19 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?