If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Can client use javascript to call stored proc on 390?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 13:29
nidm nidm is offline
Registered User
 
Join Date: May 2003
Posts: 113
Question Can client use javascript to call stored proc on 390?

hi,

I know people need to use java code(through jdbc driver) like this:
String sql = "Call SPName(?)";
try {
CallableStatement callStmt4 = con.prepareCall(sql);
callStmt4.setString( 1, "Test");
boolean isrs4 = callStmt4.execute();
}
but NOT like:
String sql = "Call SPName('Test')";
try {
CallableStatement callStmt4 = con.prepareCall(sql);
boolean isrs4 = callStmt4.execute();
}

because "the only way that JDBC drivers support parameters is with
'?' ..".

How about javascript? Can it do a simple way, such as:
CALL SPANAME('TEST')?
or embeded above java code into javascript?

Thanks
nidm
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On