Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT across databases
Message
De
23/08/2004 12:20:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SELECT across databases
Divers
Thread ID:
00935612
Message ID:
00935612
Vues:
67
This may seem naive, but this is the first time I have had a situation where I need to create an SQL statement that references data in 2 SQLServer databases. Using VFP to programmatically create the SQL statement and ODBC with SPT to execute the command, is it possible to SELECT data from tables in one database where the records match some criteria pulled from a second database.

Example: SELECT db2.data from sometables where db2.sometables.criteria = db1.someothertables.id's.

I know about normalization and realize that it would be easier to store the db1 id's in the db2 but that really won't work in this application for a number of reasons.

Is this possible?

Paul Montgomery
I can't complain but sometimes I still do - Joe Walsh
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform