Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stored Procedure Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00982584
Message ID:
00982740
Vues:
40
Ok, sounds good.

Thanks for your help



>>Ok, so the Data Object contains the SQL code.
>>
>>If I have a Customer BO, I might have a GetCustomerByID procedure.
>>The BO would pass the Id to the Data object, which would run a
>>query for that Id? Sound right?
>
>Yup, that sounds right
>
>>
>>Now, say I wanted to call stored procs in the DO instead, how would I set up
>>the stored procedure? If I had the following procedure:
>>
>>
>>procedure GetCustomerById(nId as integer)
>>select * from customers where Id = nId
>>
>>
>>How would I return the results to the BO? Would you have the DO convert the
>>results to XML, or do that in the BO?
>>
>
>Since the SP won't return a cursor, the SP will have to do the conversion to XML. The DO should not be generic; it should be custom for each backend to take advantage of the database's strengths.
>
>>Thanks
>>
>>
>>
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform