Stored procedures are quicker because they have had a BIND statement run against them. Dynamic SQL has to prepare the statements at execution time which incurs an runtime overhead. Dynamic SQL is normally used when certain important factors (like table name) are not know when the program is compiled etc.
I wouldn't assume that using stored procedures would make it more difficult to port your application. We've recently done this and in fact it's the SQL in the application that presented the bigger headache.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.