Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 2nd, 2005, 08:14 PM
dancesport_warr's Avatar
dancesport_warr dancesport_warr is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 130 dancesport_warr User rank is Lance Corporal (50 - 100 Reputation Level)dancesport_warr User rank is Lance Corporal (50 - 100 Reputation Level)dancesport_warr User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 14 h 14 m 36 sec
Reputation Power: 5
stored procedures vs. functions

Hi,

My team and I are building a system and my buddy and I are in charge of building the database. I just have a question regarding whether we should use stored procedures or functions for interaction between our system and our database.

Personally I am on the side of using functions because they return something, unlike stored procedures. This is a crucial advantage because we want the client side to know if the interaction with the database was successful or not.

So do stored procedures have some way of returning an answer as to whether it was successful at its job? I know there are exception statements but what happens if u direct a msg to STDOUT? does it go back to da place where da stored procedure was called from?

Thanks in advance for clearing this issue up for us, we really appreciate it!

Reply With Quote
  #2  
Old February 18th, 2005, 10:00 AM
wubandit99 wubandit99 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 30 wubandit99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 6 m 31 sec
Reputation Power: 4
Try using OUT or IN/OUT parameters in your procedure.

-wb-

Reply With Quote
  #3  
Old February 18th, 2005, 01:28 PM
JimmyGosling's Avatar
JimmyGosling JimmyGosling is offline
Can I get an Amen!
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Location: The Home of the Blues
Posts: 1,073 JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level)JimmyGosling User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 11 h 53 m 10 sec
Reputation Power: 563
Quote:
Originally Posted by wubandit99
Try using OUT or IN/OUT parameters in your procedure.

-wb-

is there a way to set out parameters with a prepared statement?
I'm working in java, and it does not have a method "registerOutParameter" like a regular callable statement does.
thanks
Comments on this post
Gran Roguismo agrees!
__________________
The voice from the outer world

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > stored procedures vs. functions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT