Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Passthrough
Message
De
05/09/2003 16:35:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL Passthrough
Divers
Thread ID:
00826630
Message ID:
00826630
Vues:
65
Hi All,

Im just starting to be able to use some SQL data via Foxpro(6). I am having some trouble getting complicated SQL statement to run via sqlexec(). It runs fine in sqlserver 2000 query analizer but I get a compile error in foxpro.


below is what i am doing

any ideas would be appreciated

? sqlexec(gnHandle, "select BvSurvey.Name as Survey, Hst_Path1 as ID_NUM, Hst_Path2 as ITS, Hst_Path3 as AppointmentID, ;
Hst_Path6 as CallTimeSeconds, Hst_Path6 / 60 as CallTimeMinutes, BvPerson.Name as Interviewer,;
BvAppointment.time as AppointmentTime, bvRole.Name as Role from dbo.bvhistory bvhistory;
LEFT OUTER JOIN dbo.BvPerson BvPerson;
ON bvHistory.PersonSID = BvPerson.SID ;
LEFT OUTER JOIN dbo.BvAppointment BvAppointment;
ON bvHistory.Hst_Path3 = BvAppointment.ID ;
LEFT OUTER JOIN dbo.BvRole Bvrole ;
ON bvHistory.RoleID = BvRole.RoleID ;
LEFT OUTER JOIN Dbo.BvSurvey BvSurvey ;
ON bvHistory.Hst_ObjID = BvSurvey.SID ;
where bvHistory.EvtTp_ID = 204 and Hst_ObjID = 1576 and Hst_Path2 <> 16 order by Hst_Path2 ","q1")
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform