Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stored Procedures?
Message
De
25/10/2002 09:28:02
 
 
À
25/10/2002 08:45:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00715346
Message ID:
00715388
Vues:
16
Hi Cetin

>Where is the SP ? On VFP database or backend ?

It is a VFP database. '.dbc' not free tables. At the moment we use the VFP ODBC to access the data. Backend??? If you mean SQL Server Or Oracle database. Not yet. But If I can't prove that SPs are a good idea. We will not use then when we convert.

>I assume from your post you don't currently have backend, SP is on VFP database and will simulate SQLExec()ing against another VFP table from another dbc (SP querying Testdata!customer as if it were a backend table) :

I opened the database "MODI DATABASE". Edit the SPs by adding a new one. Compiled the database. Then tried to SQLEXEC() the SP.

PROCEDURE get_proj_hrs
LPARAMETERS pnPersNo, pdWeekAct

SELECT PROJ_HRS.*, ;
SPACE(1) AS ExtSite, ;
.F. AS line_chng, ;
.F. AS match_found, ;
.F. AS new_line ;
FROM PROJ_HRS ;
WHERE INLIST(PROJ_HRS.proj_cat_no, 1, 6) ;
AND PROJ_HRS.wrk_week = pdWeekAct ;
AND PROJ_HRS.accepted = 0 ;
AND PROJ_HRS.refused = 0 ;
AND PROJ_HRS.atelier = 0 ;
AND PROJ_HRS.wrk_hrs <> 0 ;
AND PROJ_HRS.pers_no <> pnPersNo ;
ORDER BY PROJ_HRS.pers_no
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform