Hello Wen Yuang,
yes, that's what I need. The fill method will not do it, because it
creates everytime a new SELECT statement and this leads to an
inconsistent dataset:
1. Fill method (the first 200 records)
2. Someone inserts a new record in the table (record 187)
3. Fill method (the next 200 records)
I think in step 3, I will get record 199/200 a second time, because the
the records have now shifted.
This would not happen, if the SELECT stays open (or with an server cursor).
Is there an component which can manage this? If not I have to code this
myself.
Thank you very much,
Frank
Wen Yuan Wang [MSFT] schrieb:
> Hello Frank,
>
[quoted text clipped - 19 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
Wen Yuan Wang [MSFT] - 26 Feb 2008 10:33 GMT
Hello Frank,
Thanks for your reply.
In your scenario, I believe we will get the record 199/200 twice. In such
case, I'd like to suggest you may add timestamp column into table, and
check it before the select command.
>Is there an component which can manage this? If not I have to code this
myself.
ADO.net doesn't support server cursor. I'm afraid you may have to code such
component by yourself if you need that...
Please feel free to let me know if there is anything we can help with. We
are glad to assist you.
Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Wen Yuan Wang [MSFT] - 28 Feb 2008 08:51 GMT
Hello Frank,
This is Wen Yuan, again. We haven't heard from you a couple of days.
I just want to check if there is anything we can help with.
If you face any further issue, please feel free to update here again.
We are glad to assist you.
Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
======================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Frank Hauptlorenz - 28 Feb 2008 09:29 GMT
Hello Wen Yuang,
no everything is okay. I've accepted that .net is not as good as I
thought :-)
I will develop my own component for this task.
Thank you,
Frank
Wen Yuan Wang [MSFT] schrieb:
> Hello Frank,
>
[quoted text clipped - 10 lines]
> ======================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
Wen Yuan Wang [MSFT] - 29 Feb 2008 05:42 GMT
Hello Frank,
Thanks for your reply.
We are indeed sorry for inconvenience this may have caused.
For server cursor, you will have to add your own ADO code to implement the
task.
I'm afraid to say this is a product limitation. If you really have concern
on this very much, we'd like to suggest you may post the suggestion to our
Connect feedback portal. Our Product developer will evaluate them seriously
and communicate with you directly on the issue there.
http://connect.microsoft.com/VisualStudio/
Improving the quality of the products and services is a never-ending
process for Microsoft. :)
Let me know if you have any more concern. We are glad to assist you.
Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
======================================
This posting is provided "AS IS" with no warranties, and confers no rights.