>         However there are positive sides to the stored procedure aspect
> though but they have nothing to do with performance or security. They
> have everything to do with how you look at things. If you think an RDBMS
> should provide the first 'tier' in a system, which automatically implies
> it should offer some kind of API, stored procedures are the way to go.
> It's defining the RDBMS' stored proc API as a service. You can also
> provide that service by a tier outside teh RDBMS though, for example
> with a DAL, written using an O/R mapper.

I share your opinion that stored procs are not needed to get optimal speed, and
in fact have found the opposite to be true in some cases, but not all. I also
use them heavily and I'm ok with that. At any rate, there is not a hard and
fast answer as to which is best. I have stacked my DAL in favor of
parameterized dynamic sql or stored proc calls, but your reference to the
psuedo parameter functionality of the Sql Server statement cache is
interesting.  I may have to think and test that idea some more. I do think
somebody else could write a different set of tests though and come up with very
different results.

As for your statement above, there is another point of view different than the
database as "first tier", database as an external api, and a transparent view
of a database offered by OR tools.  I blogged about it at

http://blogs.xcskiwinn.org/panmanphil/posts/221.aspx

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to