scroller and mssql
scroller and mssql
toontilley
Posts: 8Questions: 0Answers: 0
First of all this is a great product and works wonders for my project.
One thing I'm struggling to achieve, is getting scroller to work with server-side processor with mssql.
I've used the ODBC script found under development but as soon I start to drag the scroller down it hangs on loading.
There are 78500 records which doesn't sound allot compared to some users on here.
Can any one give me some tips on where I might be going wrong??
One thing I'm struggling to achieve, is getting scroller to work with server-side processor with mssql.
I've used the ODBC script found under development but as soon I start to drag the scroller down it hangs on loading.
There are 78500 records which doesn't sound allot compared to some users on here.
Can any one give me some tips on where I might be going wrong??
This discussion has been closed.
Replies
SELECT TOP 10 Company_Name,WWW
FROM Company
WHERE Company_Id NOT IN (
SELECT Company_Id
FROM(
SELECT TOP 10 Company_Name,WWW
FROM Company
ORDER BY Company_Name asc)
as [virtTable] )
ORDER BY Company_Name asc
Will post back if I get a working query
/* Paging */
$top = (isset($_GET['iDisplayStart']))?((int)$_GET['iDisplayStart']):0 ;
$sLimit = ( isset($_GET['iDisplayLength']) )? ((int)$_GET['iDisplayLength'] ):10;
if ($top <> 0 ) {
$sLimit = $sLimit + $top;
$top++;
}
$sQuery = "SELECT ".implode(",",$aColumns)."
FROM (
SELECT ".implode(",",$aColumns).", ROW_NUMBER() OVER ($sOrder) AS RowNum
FROM $sTable
$sWhere
) AS MyTable
WHERE MyTable.RowNum BETWEEN $top AND $sLimit";