Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and ODBC Performance
Message
From
15/10/1997 16:39:01
Bob Lucas
The WordWare Agency
Alberta, Canada
 
 
To
15/10/1997 16:23:35
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00054680
Message ID:
00054763
Views:
36
>>By default, the views do not share the same connection (although they are defined using the same connection!). I had to make sure that all views were marked to share the same connection....
>
>HUH? what do you mean 'marked'? Is there a way to force views to use the same connection? I'm stumped.


In the advanced options of the view designer (Menu option Query - Advanced Options) there is a check box for Share Connection. Be sure that this is checked because the default is not to share connections. Or you can manipulate this option in code with DBSetProp

DBSetProp('RV_INCOME', 'View', 'ShareConnection', .T.)

It is handy to run GENDBC to have a prg that will recreate your remote views. Sometimes I find that the view designer just doesn't create the right SQL statement so I cut the view's code from the gendbc program, save it as its own program and then edit the SQL statement. By running this program I also set all of the properties as well.

If you issue something like
CREATE SQL VIEW "RV_Test" ;
REMOTE CONNECT "testconnection" ;
AS SELECT ....
from the command line, then SHARE Connection is set to .F. by default.
Previous
Reply
Map
View

Click here to load this message in the networking platform