Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to answer negative VFP attitude? Help...
Message
 
À
26/10/2000 12:41:16
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00427554
Message ID:
00434730
Vues:
22
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I have 2 new clients, one who wants to use Oracle, one who wants to use Cache. Neither want anything to do with SQL Server.

In the context of "easier handling of multiple backends", can you develop you argument for those two cases?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Hey John. AFAIK, there's no native OLEDB provider for Cache, so no. In my original point, I only meant to point out that depending on the circumstances, there could be other ways to proceed -- but as I said, good point, you're right, it's quite handy that you can switch backends so easily with remote views.

But, to develop the argument a little.... the only ADO-based system I have worked on that was switching b/w different databases utilized wtwo SQL Server databases (don't ask -- ugly reporting system against a bad design that was out of my hands). In that case, I added stored procedures with the same name to each database and switched out the connection string as necessary. (Conceivably, I could have done the same with other types of backends that support the functionality.) I don't think the handling of multiple backends would have been easier with Remote Views in that case. In fact, probably just the difference between the following constructs somewhere in a startup routine:

Strategy A:
DO CASE
CASE nBackEnd = 1
Open Database ONE
CASE nBackEnd = 2
Open Database TWO
CASE nBackEnd = 3
Open Database THREE
ENDCASE

Strategy B:
DO CASE
CASE nBackEnd = 1
ADORecordset.ConnectionString = GetString("One")
CASE nBackEnd = 3
ADORecordset.ConnectionString = GetString("Two")
CASE nBackEnd = 3
ADORecordset.ConnectionString = GetString("Three")
ENDCASE
&&& where GetString returns a sql server OLE DB string with
&&& the database name added into it....

Okay, maybe that's a lousy example... ;-)
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform