This is a migrated thread and some comments may be shown as answers.

IQuery MaxResultCount

2 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steven
Top achievements
Rank 2
Steven asked on 18 Dec 2009, 10:39 AM
Hello

I updated to the newest Version of Open Access, now I'm getting this exception:

genericADO2:
Error executing query: Telerik.OpenAccess.RT.sql.SQLException: Must declare the scalar variable "@__TAKE".

NTDS:
Error executing query: Telerik.OpenAccess.RT.sql.SQLException: Parameter #1 has not been set.

This happens when I set the MaxResultCount to int.MaxValue.

Telerik.OpenAccess.IQuery query = ...
query.MaxResultCount = int.MaxValue;

Open Access Version:
2009.3.1119.2

Driver:
Happens for both NTDS and genericADO2

2 Answers, 1 is accepted

Sort by
0
Accepted
Damyan Bogoev
Telerik team
answered on 19 Dec 2009, 06:25 PM
Hi Steven,

Could you please tell us which was the version you used previously? In fact there is a workaround that you can use. You can set the MaxResultCount property to 0 to achieve the same functionality.
Currently we are investigating the problem and we will fix it in one of the future releases.
Hope that helps.

Best wishes,
Damyan Bogoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Steven
Top achievements
Rank 2
answered on 19 Dec 2009, 06:44 PM
Hello Damyan

Thank you for the reply!

I had a look at what version was used before:
2009.2.701.5

- Steven



Tags
General Discussions
Asked by
Steven
Top achievements
Rank 2
Answers by
Damyan Bogoev
Telerik team
Steven
Top achievements
Rank 2
Share this question
or