Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with SQL involving 2 DBCs
Message
De
18/03/2004 20:38:41
 
 
À
18/03/2004 12:59:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00887579
Message ID:
00887755
Vues:
17
Luis,

Thank you for your help.

You pointed me in the right direction:

>You are using VFP's SQL dialect on SQL Server. Both SQLs versions are not the same, they have many >differences. For example you can't use "!" to do a "database!table" reference in SQL Server, you should use >something like in: "database..table" to reference a table in another database (in between the two dots goes >the owner of the database but in some circumstances it can be omitted, I don't remember those >circumstances :) ). So your query could be like this (do not use semicolons between the lines):

>SELECT TableA.lname,TableB.orderdate,TableB.orderamount
>FROM BaseA..TableA TableA
>LEFT OUTER JOIN BaseB..TableB TableB ON TableA.OrderNum = TableB.OrderNum

I ended up qualifying ALL references with the DATABASE..TableName.FieldName.....and it works fine..!!

Thanks again.

David
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform