Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a parameter to stored procedure
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00544339
Message ID:
00544390
Vues:
17
This message has been marked as the solution to the initial question of the thread.
You have to specify the size for your parameter otherwise it's char(1)

>VFP function used to call Stored Procedure:
>nSQLExec = SQLExec(nConn, "{Call RKR_GetShifts (cCalDate1)}")
>
>
>Stored Procedure:(SQLSVR 7.0)
>CREATE PROCEDURE [RKR_GetShifts]
>@SelectedDate as Char(11)
> AS
>Select tshiftstart, tshiftend
>From tblOESch_Shifts
>Where SubString(Cast(tshiftstart as char),1,11) = @SelectedDate
> Or SubString(Cast(tshiftend as char),1,11) = @SelectedDate
>Order By tshiftstart ASC
>
< SNIP >
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform