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
-
V8 / 8.192 cc / 226 PS / 380 ft/lb (515 Nm) @ 2.000 (click images for a larger view)
-
Photo: Diane Edwardson, December 11, 2011. What was I saying about guerrilla artists needing to take responsibility for maintaining their a...
-
Photo: Diane Edwardson, November 29, 2012, 9:05 AM. Traffic was light on the 2 Freeway, southbound; it was only backed up to the 5 Freeway....
-
Photo: Diane Edwardson, March 28, 2012, 9:44 AM. I heard what sounded like a hawk atop the huge California Black Walnut near the Adelbert c...
-
Required reading: Bill Moore's EVWorld review and Martin Zimmerman's LA Times piece about their test drives of the Toyota Plug-in ...
-
Photo: Diane Edwardson, June 26, 2012. Developers cut down nearly 4 acres** of urban forest next to the 2 Freeway to grade the Semi Trop...
-
This track will be the first (by that I suppose they mean lead) single from the forthcoming The Kids Got Lost In Formalities EP by The Gold...
-
Photo: Diane Edwardson, July 4, 2012. Arrow points to squirrel atop the 12' pile of dead trees awaiting clearance in Red Car Canyon....
-
Photo: Diane Edwardson, July 1, 2009. Trees on the Silver Lake side of the 2 Freeway would all be cut down and we would get 8-16' ...
No comments:
Post a Comment