Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB, C#, and VFP data handling examples
Message
From
19/04/2007 20:24:26
 
 
To
19/04/2007 19:01:19
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01215120
Message ID:
01218127
Views:
37
I can think of two reasons:

1- The general belief that SPs are always faster. (not true)
2- Possibility of SQL injection from dynamic queries. (not always the case)

>Gary,
>
>I think part of it might be the "SP is always best" issue. If you're generating dynamic updates based on change tracking, you'd need screeds of code in a SP to manage that, plus presumably more in the middle tier to process the deltas and tell the SP what to do. In which case the obvious question is "why not build a dynamic parameterized SQL Update and bypass the SP."
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform