Mike Lewis
Programmer
I've inherited an application that talks to a SQL Server back-end via updatable remote views. I want to introduce transaction processing into this scenario.
I understand that if multiple remote views are to take part in the same transaction, they must share a connection. So I've set the appropriate view property to achieve that.
To avoid any conflicts when multiple views are trying to use the same connection, I've set the views' "Number of Records to Fetch at a Time" setting to -1, which I believe should have the effect of making the views synchronous.
This seems to work OK, but, of course, it means that, when opening a form that includes a number of views, the user must wait until all the data for all the views has completely downloaded before getting control of the UI. That's a consequence of making the views synchronous. (Some of the views are unfortunately very large.)
I'd appreciate any comments on whether I am going about this the right way, or if there is a better approach.
Please note: I am not looking for a discussion on the rights and wrongs of using updatable remote views. This is not something I would have chosen to do myself, but I have no choice in the matter.
Thanks in advance for any help.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk
I understand that if multiple remote views are to take part in the same transaction, they must share a connection. So I've set the appropriate view property to achieve that.
To avoid any conflicts when multiple views are trying to use the same connection, I've set the views' "Number of Records to Fetch at a Time" setting to -1, which I believe should have the effect of making the views synchronous.
This seems to work OK, but, of course, it means that, when opening a form that includes a number of views, the user must wait until all the data for all the views has completely downloaded before getting control of the UI. That's a consequence of making the views synchronous. (Some of the views are unfortunately very large.)
I'd appreciate any comments on whether I am going about this the right way, or if there is a better approach.
Please note: I am not looking for a discussion on the rights and wrongs of using updatable remote views. This is not something I would have chosen to do myself, but I have no choice in the matter.
Thanks in advance for any help.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk