Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ASP calling a DLL which calls an Oracle Stored Procedure r..

 
   Database Help (Home) -> Visual Basic -> ODBC RSS
Next:  Data Access Page  
Author Message
mndarius

External


Since: Jan 19, 2004
Posts: 2



(Msg. 1) Posted: Mon Jan 19, 2004 5:35 pm
Post subject: ASP calling a DLL which calls an Oracle Stored Procedure ret
Archived from groups: microsoft>public>vb>database>odbc (more info?)

Well, the subject line sums it nicely. Hello all, using Windows2000,
9i(9.0.2?), OraOLEDB driver by Oracle.

I have an Oracle stored procedure that is called by a DLL which is
called from an ASP page. Everything functions correctly when I use the
DLL in a test application I wrote with VB. When I try to do this from
an ASP page only the input parameters 'work'. The output params never
return anything or maybe, more correctly, the params for the DLL call
never get assigned a value. The signature of the stored procedure is
....

CREATE OR REPLACE PROCEDURE checkOutFile( pProjName IN VARCHAR2,
pFileName IN VARCHAR2, pUser IN VARCHAR2, pVer IN NUMBER DEFAULT 0,
pOutComm IN VARCHAR2 DEFAULT NULL, pFcontent OUT CLOB, pSQLcode OUT
VARCHAR2, pSQLmsg OUT VARCHAR2 )

The ASP code is ...

<%
prjMan.checkoutfile CStr(pName), CStr(FName), CSt(FUser), CInt(FVer),
CStr(chkOutComm), CStr(retResult), CStr(retSqlCode), CStr(retSqlMsg)

Response.Write( "retResult: " & retResult & "<br>" & "retSqlCode: " &
retSqlCode & "<br>" & "retSqlMsg: " & retSqlMsg & "<br>" )
%>

Note, the DLL method that calls the Oracle SP share the same name,
sorry if that is screwy.
Thanks in advance for your help.
Mike

 >> Stay informed about: ASP calling a DLL which calls an Oracle Stored Procedure r.. 
Back to top
Login to vote
mndarius

External


Since: Jan 19, 2004
Posts: 2



(Msg. 2) Posted: Tue Jan 20, 2004 1:01 pm
Post subject: Re: ASP calling a DLL which calls an Oracle Stored Procedure [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Okay, problem solved. I don't know if this is a kludge or not, if you
would like to tell me I'd be happy to listen.

Originally, the DLL was designed to be used by an app with specific
types. ASP uses variants and you cannot explicitly create its
subtypes (int, string,...) so I was trying to use the conversion
functions. This never did look right and it wasn't because I believe
this was essentially turning my byRef return params into byVal's (just
my way of describing what I am not sure of Wink. So, I wrapped the
original methods with 'web' methods that use variant parameters and do
the conversions there. Feel free to correct me, I would like to hear
other ideas.

Thanks,
Mike


mndarius.RemoveThis@butlermfg.com (mndarius) wrote in message news:<f8d3fefc.0401191435.6bbeb4fb.RemoveThis@posting.google.com>...
 > Well, the subject line sums it nicely. Hello all, using Windows2000,
 > 9i(9.0.2?), OraOLEDB driver by Oracle.
 >
 > I have an Oracle stored procedure that is called by a DLL which is
 > called from an ASP page. Everything functions correctly when I use the
 > DLL in a test application I wrote with VB. When I try to do this from
 > an ASP page only the input parameters 'work'. The output params never
 > return anything or maybe, more correctly, the params for the DLL call
 > never get assigned a value. The signature of the stored procedure is
 > ...
 >
 > CREATE OR REPLACE PROCEDURE checkOutFile( pProjName IN VARCHAR2,
 > pFileName IN VARCHAR2, pUser IN VARCHAR2, pVer IN NUMBER DEFAULT 0,
 > pOutComm IN VARCHAR2 DEFAULT NULL, pFcontent OUT CLOB, pSQLcode OUT
 > VARCHAR2, pSQLmsg OUT VARCHAR2 )
 >
 > The ASP code is ...
 >
 > <%
 > prjMan.checkoutfile CStr(pName), CStr(FName), CSt(FUser), CInt(FVer),
 > CStr(chkOutComm), CStr(retResult), CStr(retSqlCode), CStr(retSqlMsg)
 >
 > Response.Write( "retResult: " & retResult & "<br>" & "retSqlCode: " &
 > retSqlCode & "<br>" & "retSqlMsg: " & retSqlMsg & "<br>" )
 > %>
 >
 > Note, the DLL method that calls the Oracle SP share the same name,
 > sorry if that is screwy.
 > Thanks in advance for your help.
 > Mike<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ASP calling a DLL which calls an Oracle Stored Procedure r.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
list of all database and table Properties in Oracle - Hi , Please any body , could you tell me how to get list of all database and table Properties in Oracle database, under which table they cantain all inforation about database or table that every user can access.... Thanks and Regard Srihari Reddy

.MDB table linked to Oracle backend - #S_C_H# error - This has cropped up a few times, but I have yet to find a satisfactory answer. My company uses an .mdb with tables linked to an Oracle backend through ODBC (MS Oracle driver). Until recently this was working fine, however something changed (no one ca...

HOWTO: Clone SQL db ? - Hi all, I'm having a SQL Server database called X. For testing and training, I would like to make a copy of the entire DB to Y. This copy should include all data, properties, indexes, views, etc. Unfortunately, all my attempts to automate this..

Change connect string for Excel Queries using an ODBC Driver - Reference: ODBC Connection for MAS90 MAS200 In Excel we have an ODBC Connection String with a physical (hard coded) path to the data. We have changed the servers. We do not want to recreate all of the queries. How can we edit the ODBC path inside of..

ISA 2006 with My sql Connection - Hi, Please help me,acutually I am facing problem with ISA 2006.It does not connect Mysql data base. It is giving error"Can't connect to Mysql server on "IP" 10060."
   Database Help (Home) -> Visual Basic -> ODBC All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]