Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote View JOINing with linked server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01209546
Message ID:
01209882
Vues:
24
This message has been marked as a message which has helped to the initial question of the thread.
Hi Del, the answer is yes, this is perfectly doable, either through
code from Fox, or in the SQL Enterprise Manager environment. InFox code would be something like this:

OPEN DATABASE MyDatabaseName
SET DATABASE TO MyDatabase Name

CREATE SQL VIEW MyViewName REMOTE CONNECTION MyConnectionName AS ;
SELECT a.MyTable1Field1, a.MyTable1Field2, b.MyTable2Field1 ;
FROM MyLinkedServerName.MyDatabaseName.dbo.MyTable1Name a INNER JOIN ;
dbo.MyTable2Name b ON a.MyTable1Field1 = b.MyTable2Field1



Good luck!

>Is it possible to create a remote view which JOINs a SQL2005 table with a table within a linked server? Can this be done within the context of a single connection?
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform