Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Future as a FoxPro Developer
Message
From
14/07/2004 05:04:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/07/2004 12:33:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00918302
Message ID:
00924100
Views:
32
>>
>>Yes David told me they contain paths. I thought them as prefixes. OK then I'd say why not do a single SQL with union if you wouldn't try other ways like xBAse just to be fair to C#.
>>Cetin
>
>Cetin,
>
>Do you recommend that single SQL would hit several remote locations? What if there is a connection problem with one of them? He might want to still grab the other locations data. Also, the SQL statement would have to be altered (perhaps by macro substitution) when another office is added.

Steve,
Scenario could be skinned in many different ways. For connection problems VFP's ability to take offline comes to mind. I don't know what would happen if in real production there is a connection problem, how dynamic are the tables etc.
Union itself has some limitation on the number of joined tables. But at least it could make multiple DISTINCT queries into one. DISTINCT makes an SQL slower.
SQL statement could be written on the fly from tables got in array and if it were VFP app multiple SQLs instead of one with left joins or xBase ways might prove to be much better.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform