Format Mysql 'limit' into MS SQL DB

Format Mysql 'limit' into MS SQL DB

lamagylamagy Posts: 11Questions: 0Answers: 0
edited March 2011 in General
hi all,

im running DT as serverside, but our database is MS SQL Server, 2000version if im correct.

anyone know how to handle the 'limit 0, 10' function in MS SQL as this does not translate in this dB.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    This post might be of interest: http://datatables.net/forums/comments.php?DiscussionID=514&page=1#Item_4 . Failing that, it might be an idea to ask in an MSSQL forum what can be used instead of limit (as I'm afraid I know next to nothing about MSSQL!).

    Regards,
    Allan
  • lamagylamagy Posts: 11Questions: 0Answers: 0
    Hi Allan,

    i tried to do a work around where i'm putting the start and limit values in a for loop, but it does not seem to be working, im getting the first 10 records then all nulls, i think datatables sends the totalcount and tries to match that with the records in the loop.
This discussion has been closed.