S
Sahil Malik
Okay so I've been going thru the Microsoft Data Access Application block.
It says that the following are best practices bla bla .. but here are the
obvious problems atleast I see from my viewpoint.
a) Using SqlCommandBuilder to derive stored proc parameters. I thought
CommandBuilders were evil !!!
b) Insisting on using a Parameter cache - which is in turn stored in a
static hashtable - can I use this on a website, or in a multithreaded
application or a remtoing server that accepts many clients? In other words,
there's a bottleneck here - plus there is a scalability issue here.
(SqlParameterCache - urrghh !!!) Not to mention, those are stored in a
static hashtable - so no two stored procs I have will ever share the same
parameter name.
c) Ability to pass in a connection - so your database access layer doesn't
really prevent people from not closing connections?
All in all, so far I think I am gonna write my own data access layer. Anyone
disagree?
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
http://blogs.apress.com/authors.php?author=Sahil Malik
It says that the following are best practices bla bla .. but here are the
obvious problems atleast I see from my viewpoint.
a) Using SqlCommandBuilder to derive stored proc parameters. I thought
CommandBuilders were evil !!!
b) Insisting on using a Parameter cache - which is in turn stored in a
static hashtable - can I use this on a website, or in a multithreaded
application or a remtoing server that accepts many clients? In other words,
there's a bottleneck here - plus there is a scalability issue here.
(SqlParameterCache - urrghh !!!) Not to mention, those are stored in a
static hashtable - so no two stored procs I have will ever share the same
parameter name.
c) Ability to pass in a connection - so your database access layer doesn't
really prevent people from not closing connections?
All in all, so far I think I am gonna write my own data access layer. Anyone
disagree?
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
http://blogs.apress.com/authors.php?author=Sahil Malik