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
-
by Rick Woodbury I've recently asked all of my facebook friends to join the Lane Sharing Cause. http://apps.facebook.com/causes/113221?m...
-
Most developers when developing Windows Communication Foundation (WCF) services, will take security for granted and deploy their web service...
-
My rich-client saga continues today with the green-light given to my Java colleagues to proceed with Thinlet , an OSS rich-client solution. ...
-
We take our duties as activists working to "Save the Denburn Dual Carriageway!" very seriously. ('Like' us on FaceBook , ...
-
Over the years, I have collected a number of frequently asked questions while working on Layered Architecture Solution Guidance (LASG) and ...
-
I have just gotten a MacBook Pro for work and like all the other notebooks before it, the first thing I would do is to install Windows Serve...
-
ARC213 - Microsoft Architecture Vision & Direction by Gurpreet Pall Started my day with this. Was 15 minutes late but I manage to get...
-
Today is the last day of Tech.Ed. *So Sad* Went there early hoping to attend the Microsoft Business Solutions session but it was knocked off...
-
"Arguments are 90% emotions and 10% nonsense." That's what I learnt from my trainer the other day. Most of the time, human be...
-
While working on a new ASP.NET MVC layer sample with SignalR, I have constantly encountered the following error when I tried to access the ...
No comments:
Post a Comment