Solved

Should we use Stored procedures

Posted on 2004-04-06
3
233 Views
Last Modified: 2010-04-01
I work for a medium sized company and was wondering about stored procedures.

Currently we create web apps using ColdFusion, at some point they may all be converted to Java Apps.  

Should we consider using stored procedures.  I do not think we will change the database (oracle 8i), but we could change our programming languages in the future.
0
Comment
Question by:astro26
3 Comments
 
LVL 14

Accepted Solution

by:
kennethxu earned 50 total points
Comment Utility
if you are sure that you won't change the database, you can go ahead and use store procedures. the disadvantage of store procedures is that it'll be very difficult to migrate your database in future.
0
 
LVL 5

Expert Comment

by:KarcOrigin
Comment Utility
Hi,

Stored procedures are the DB objects which are stored directly in the DB engine. It is better if you want to execute a long series of sqls depending on one anothers. As kennethxu told that if you change your DB it will be difficult to migrate (as if it rearly happen)

The crunch of the talk is that convert the SQL into SPs if there is a bundle of SQLs which are dependent on each other. Otherwise it is better to create dynamically SQL string and execute it against the DB. Practically you can never convert the each and very SQLs in SPs.
Thx
0
 

Author Comment

by:astro26
Comment Utility
I use parameterized sql, from what I read... it seems as if SP's give you no preformance increase over parameterized sql.  I just thought that if I used sp's, then it would make it very easy to interchange programming languages.  The database will always be Oracle, so I do not think that will be an issue.
Thanks all!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now