Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A database challenge
Message
From
26/02/2008 22:35:52
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
26/02/2008 21:38:49
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01295541
Message ID:
01296714
Views:
18
But for one thing! The whole idea of SP being compiled versus raw SQL may have been true in SQL 6.5, but is now a myth. In fact, now it's the SP that uses EXEC to execute contrived SQL that does not use the query cache.

Precisely! I'm wondering when it became less fashionable to try to use parameterized queries wherever possible to gain benefits from the cache, and because they prevent SQL injection. IMHO the SQL injection issue is even more important with SPs because concatenated SQL inside a privileged SP may allow malicious attacks from which there is no defense. But I'm also reminded of an old argument (still preserved on the wiki) that boiled down to "SP is faster than SPT because if it isn't, you can buy a bigger server." ;-)
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform