Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Strange??
Tue, Sep 18 2018 7:26 PMPermanent Link

Ian Branch

Avatar

Hi Team,
   I have a table with an EDBQuery, Dataset & DBGrid.
   If I set the Active True the ReadOnly sets True, even though it wasn't to start.  This happens in Design & Run time.
I don't want it Readonly, RequestSensitive is true.
   The data displays OK, just can't do anything with it. Frown
   None of my other tables exhibits this behaviour.
   Any thoughts/suggestions appreciated.
Regards,
Ian
Tue, Sep 18 2018 7:32 PMPermanent Link

Ian Branch

Avatar

Further observation..

The original sql is - "Select * from UsersLog order by userid"

If I remove the "order by userid" the RO doesn't set??
Tue, Sep 18 2018 8:43 PMPermanent Link

Fernando Dias

Team Elevate Team Elevate

Ian,

Is there an index on UserID ?

--
Fernando Dias
[Team Elevate]
Tue, Sep 18 2018 9:29 PMPermanent Link

Raul

Team Elevate Team Elevate

On 9/18/2018 8:43 PM, Fernando Dias wrote:
> Is there an index on UserID ?
>

+1

See
https://www.elevatesoft.com/manual?action=viewtopic&id=edb2sql&topic=Result_Set_Cursor_Sensitivity

Specifically

Queries that retrieve data from a single table will generate a sensitive
result set provided that:
....
There is no ORDER BY clause in the SELECT statement, or there is an
ORDER BY clause that minimally matches the columns, and the collations
defined for the columns, in an existing index in the source table.
....

Raul
Wed, Sep 19 2018 6:00 AMPermanent Link

Ian Branch

Avatar

Raul wrote:

> There is no ORDER BY clause in the SELECT statement, or there is an ORDER BY clause that minimally matches the
> columns, and the collations defined for the columns, in an existing index in the source table.

Ahhhhh. Frown

Thanks Fernando & Raul.
Image