I have always been a fan of dynamic SQL over stored procedures, simply because I felt that I have greater control over what SQL statements I would like to generate in code. And over the years, the gap between the benefits of dynamic SQL vs. stored procedures has also narrowed down.
Note: Now when I say dynamic SQL, I mean the one that uses named parameters ;)
But my current project has made me realized an important benefit of using stored procedures and that is ... when trying to upgrade from a very old SQL Server to a new version, it is difficult to identify which embedded SQL statement will break and it is even more difficult if the SQL statements are built using string concatenation and embedded in legacy VB6 code with no unit test.
Now, the SQL Upgrade Advisor tool will not be able read and 'advise' on these embedded SQL. So, in such scenario, I think using stored procedures would have been much better.
Home » SQL Server » Stored.Procedures
Popular Post
-
Intro Ahh... My new blog spot. Loke Uei from Microsoft Malaysia has recommended me to blog here as he can't stop laughing at me for blo...
-
Golden Dream Rolls Royce with Hemmy - by Ivan Mitev Photography I stumbled upon this ostentatious golden beauty tonight and had to put it up...
-
My best mooncake award for this year goes to Baker's Cottage 's snow-skin yam mooncake! Absolutely yummy! But mom prefers her Cosway...
-
I'm a little demotivated lately with the type of work that I'm assigned to. I feel that my skills and talents are not fully utilized...
-
Complacency - a word usually used to describe folks who take it too easy at work and to some extent, not motivated to do better beyond '...
-
Writing is hard. Writing for an agent is even harder. Writing for an editor considering your book but wanting a rewrite first is like climbi...
-
Photo: Diane Edwardson, November 1, 2011. Cat skull. (Click on photo to enlarge.)
-
One of the proposals that Ferrari didn't liked... I have LOTS of them in fact.
-
I t has been one month now since I've joined Microsoft and you must be wondering how am I doing? I'm doing great at the moment and ...
-
Regular readers will remember that last month we reported with fury and disbelief the upswing in recorded users of pedal cycles in Aberdeen...
No comments:
Post a Comment