ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion 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 October 13th, 2005, 07:55 PM
tron52 tron52 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 10 tron52 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 26 sec
Reputation Power: 0
ODBC vs JDBC storedproc query result

i'm stuck... :(

here it is...

my storedproc in interbase 6.X ...

CREATE PROCEDURE WA_STUDLIST (
ILAST VARCHAR(15) CHARACTER SET NONE)
RETURNS (
OCOURSE CHAR(25) CHARACTER SET NONE,
OYEAR CHAR(15) CHARACTER SET NONE,
OMIDDLE CHAR(15) CHARACTER SET NONE,
OFIRST CHAR(25) CHARACTER SET NONE,
OLAST CHAR(15) CHARACTER SET NONE,
OID VARCHAR(7) CHARACTER SET NONE)
AS
begin
for select id,last, first, middle, course, syear from enlist where last starting :ilast order by last, first, middle
into :oid, :olast, :ofirst, :omiddle, :ocourse, :oyear

/* Procedure Text */
do suspend;
end


my CF coding....


<cfstoredproc procedure="wa_studlist" datasource="SIS" returncode="no">
<cfprocparam type="in" cfsqltype="cf_sql_varchar" value="#searchstring#">
<cfprocresult name="studlist">
</cfstoredproc>

<cfdump var="#studlist#" label="Student">


if i set the datasource via ODBC, assuming my searchstring 'SMIT', it will return rows (more that one) starting SMIT. but via JDBC with the same input parameter, it will only return one row.

here's my JDBC connection...

JDBC URL -> jdbc:firebirdsql://sis/d:\\sis.gdb
Driver Class -> org.firebirdsql.jdbc.FBDriver

it seems that current seetings wont allow STOREDPROC to return 2 or more rows... any ideas?

thank you in advance.

tron

Reply With Quote
  #2  
Old October 13th, 2005, 08:18 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,661 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 14 h 23 m 22 sec
Reputation Power: 53
Not sure, it may be an issue with the JDBC driver for Firebird? I haven't used Firebird or Interbase so I really don't have much to offer on this one.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old October 13th, 2005, 08:51 PM
tron52 tron52 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 10 tron52 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 26 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
Not sure, it may be an issue with the JDBC driver for Firebird? I haven't used Firebird or Interbase so I really don't have much to offer on this one.


yes you're maybe right, anyways, ill just settle for standard query for the time being, i was hoping for storedproc for faster query and good security. how fast is it really when using storedproc compared to select?

tnx again kite , it is so cool being a member here

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > ODBC vs JDBC storedproc query result


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 4 hosted by Hostway