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
-
Time: 6:50 a.m. Temperature: 46 degrees Meal: Biscuit and coffee Goal: To read through chapters, highlighting clunky and passive language. W...
-
As the cliche goes: I am over the Moon! And! And! You don't even need the Kindle device to read it. Go to the book's page on Amazon...
-
One of the proposals that Ferrari didn't liked... I have LOTS of them in fact.
-
The Original 1996 VW Golf Harlequin Art Car photo via A 1996 Volkswagen magazine ad said, “Can’t decide on a color? Try a Harlequin Golf.” T...
-
This is sweet, nice, cool etc.... Hannah Schneider performs a stripped down live version of recent single In The Line Of Fire in a (don...
-
Reuters reports: U.S. auto sales dropped by more than 41 percent in February to the lowest level in almost three decades as deepening econo...
-
Think Global, the Norwegian electric car maker, has halted production of its electric City car, generating fears of a possible bankruptcy. ...
-
Joseph Martinez. I want to draw cars like this guy here! Keywords: concept automotive car body design renders industrial car design art blo...
-
The Nyayo Pioneer (Kenya) nitiating the idea of a Kenyan car in 1986, former President Daniel arap Moi asked the University of Nairobi to pr...
No comments:
Post a Comment