Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLExec() SQL Select from 2 DB
Message
De
14/09/2017 12:59:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01654292
Message ID:
01654295
Vues:
41
>Use three part naming to include the name of the database, if the database is on the same instance
>
>
select Table1.fielda from Table1 
left join db2.dbo.Table2 on Table1.pk = Table2.pk 
where table2.field2 = '1234' -- assumming the schema is dbo and the database is db2 for table 2
Actually, the dbo can be omitted, it's the default. I frequently use db2..table syntax.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform