Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor INNER JOIN with client server table
Message
De
03/08/2005 15:34:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01038183
Message ID:
01038271
Vues:
26
>Then, your stored proc could look something like this:
>
>CREATE PROCEDURE dbo.joinProc
>	(
>		@idList varchar(2000) = ""
>	)
>as
>	set nocount on
>
>	declare @query varchar(2500)
>
>	set @query = "SELECT table1.fieldList, table2.fieldList "
>	set @query = @query + "FROM table1 "
>	set @query = @query + "INNER JOIN table2 "
>	set @query = @query + "ON table1.id = table2.id "
>	set @query = @query + "WHERE table2.id IN (" + @idList + ")"
>
>	execute (@query)
>return
>
Is there a way that I could have that stored procedure to exist within native VFP code? I mean, I don't want to store that on the backend. I would like to execute such procedure to achieve the goal but by code only.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform