Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent & Child
Message
From
07/08/2002 23:58:18
 
 
To
05/08/2002 00:34:08
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00686093
Message ID:
00687365
Views:
25
I noticed that you always mention STORED PROCEDURE when talking about data manipulation. Can you explore more on this issue?
Create one SP per project?
Create one SP per table?
Create one SP per table & type of operation (Select/Insert/update/delete)?
Do you create a parameter for every field?
What about if the table contains a lot of fields?
How practical do you think it is using SP?


>Nabil,
>
>That will work, however I wouldn't do it that way because of the fact that it requires two round-trip calls to the server. Instead, either send both queries at the same time (your Sql string will contain both queries in it) or call a Stored Procedure that returns both tables (that is the way that I would do it).
>
>~~Bonnie
>
>
>>I created a typed dataset which consist of a parent table,child table, and one to many relation.
>>
>>The mechanism I'm following to retrieve the data of both tables is:
>>1- Assign the parent's parameters values.
>>2- Fill parent table.
>>3- Assign the child's parameters values.
>>4- Fill child table.
>>
>>Is that ok, or there is a better approach?
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform