Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

sql query displays same result after switching pages

$
0
0

Hello everyone,

We are connecting a progress database to my sharepoint farm, we do this by using a linked server in SQL management studio to this Progress database and then connecting to sharepoint through the Business Connectivity Services.

Now the problem is when I create a view and connect this view to SharePoint and I display 100 rows on the first page and i try switching to the second page to display the next 100 rows, it keeps displaying thesame rows from the first page all over again. 

I tried connecting to a table I filled with the exact same query and scrolling through the data, this works like it should.

I want to work with this view since this is a dynamic display of data and this is what I need.

Here is a copy of the query : 

SELECT     firnr, klanr, naam, straat, postnr, plaats, contact, btwnr, tel
FROM         OPENQUERY([progress], 'SELECT distinct top 150  firnr, klanr, naam, straat, postnr, plaats, contact, btwnr, tel
FROM STDB.PUB.kla') AS klantgegevens

So on page one i get 100 rows, so on page 2 i should get the remaining 50, but he keeps displaying thesame 100 rows.

Is there anything that's wrong about the query or the way progress processes the query on the database?

Any suggestions are welcome!

Kind regards,

Dries



Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>