Eric Wise

Sponsors

The Lounge

Wicked Cool Jobs

Blogs I Read

Fun & Games

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Of Patterns and SQL Stored Procedures

Some people have been discussing SQL Stored procedures lately.  I figured I'd weigh in. 

As with most things programming, it really depends on what you're trying to accomplish.  There are certain situations when lots of stored procedures are appropriate (application designed to run on a single database, higher security, speed, etc), and certain situations where they are not (dynamic queries, multiple database types supported, etc).

The most helpful thing you can do in any type of programming is pick a pattern and stick with it!  Real world however, it's just doesn't seem to work out that way- there's always some wierd case that pops in.  When this happens you need to make sure to document it thoroughly.

At the end of the day, pattern or no, if your code is easy to read, understand, debug, and the application works; you have been successful.


Posted Thu, Jan 20 2005 6:29 AM by Eric Wise

[Advertisement]

Comments

Darrell wrote re: Of Patterns and SQL Stored Procedures
on Thu, Jan 20 2005 3:42 AM
Guess which design patterns users like? They don't care! They want an application that works. :)
John Wood wrote re: Of Patterns and SQL Stored Procedures
on Thu, Jan 20 2005 4:36 AM
They probably don't care what language it was written in either. But if they found out that the choice of language and patterns affects how much it will cost to maintain the application, then they might suddenly get interested.

It's like when I get my oil changed. I don't care what brand of oil they use as long as the car keeps running. But as soon as it stops working I start to wonder whether they used a quality or poor brand of oil.
Devlicio.us