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
-
Survivors Of Gas Station Explosion Mourn Tragic Loss Of Gasoline
-
Photo: Russell Bates, 2010. Red Car Property neighborhood beekeepers in LA Times. (Click on photo to enlarge.)
-
V12 / 5.576 cc / 385 PS / 406 ft/lb (550 Nm) @ 4.000 / 0 - 62 mph (100 km/h): 6,6 s / Vmax: 155 mph (250 km/h) (click images for a larger ...
-
Photo: Diane Edwardson, February 18, 2012. Native California Black Walnuts are sprouting leaves on the Red Car Property. (Click on photo t...
-
A special edition Racer Ford P68 has been made by Racer for Great Traditions in Philadelphia for the Racer Resin National Final race for 201...
-
Series Imola: SC-4031C2 15.8x8mm. Imola Black SC-4031C3 15.8x8mm. Imola Blue SC-4046C2 16.5x8mm. Imola Black SC-4046C3 16.5x8mm. Imola Blue...
-
S4 / 1.984 cc / 200 PS / 207 ft/lb (280 Nm) @ 1.700 - 5.000 / turbo / AWD (click images for a larger view)
-
Subject line: Amazing Hi Jesse, Congratulations on an awesome site. After I read the other guy's compliment this morning I felt ashamed...
-
The human tides which inhabit the HMO's of Aberdeen's Broomhill Road are a constant source of trouble to their entrepreneurial landl...
-
Photo: Diane Edwardson, August 7, 2012. Each morning for the past week, a small flock of the biggest pigeons I've ever seen, have be...
No comments:
Post a Comment