I have installed RDC and the Select, Update, Insert, statements work well.
I'm trying to call a store procedure. I searched the forum and have tried CALL EXEC and has not worked for me.
Into file config.properties:
The Store Procedure have parameters of input:
As should declare the command in the config to run well.
In the B4A Editor:
I've tried with EXEC, CALL and many ways to define the variables.
Thank you very much for reading this post
I'm trying to call a store procedure. I searched the forum and have tried CALL EXEC and has not worked for me.
Into file config.properties:
DriverClass=interbase.interclient.Driver
JdbcUrl=jdbc:interbase://192.168.1.105/d:/semaforos/Gestion.ib
#SQL Server
#DriverClass=net.sourceforge.jtds.jdbc.Driver
#JdbcUrl=jdbc:jtds:sqlserver://<database server ip>/<database>
User=sysdba
Password=masterkey
ServerPort=17178
#If Debug is true then this file will be reloaded on every query.
#This is useful if you need to modify the queries.
Debug=true
#commands
sql.select_spsalidas=EXEC SALIDAS_MAN_IU ID=?,@ID1=?,@PIA1=?,@ID2=?,@PIA2=?,@ID3=?,@PIA3=?,@ID4=?,@PIA4=?,@ID5=?,@PIA5=?,@ID6=?,@PIA6=?
The Store Procedure have parameters of input:
ID
ID1
PIA1
ID2
PIA2
ID3
PIA3
ID4
PIA4
ID5
PIA5
ID6
PIA6
As should declare the command in the config to run well.
In the B4A Editor:
Dim cmd As DBCommand
Dim Name As String
cmd.Initialize
cmd.Name = "select_spsalidas"
cmd.Parameters = Array As Object(1,1,1,1,1,1,1,1,1,1,1,1,1)
'reqmanager is initialized
'reqManager.ExecuteCommand(cmd, 0)
reqManager.ExecuteQuery(cmd,0,"select_spsalidas")
I've tried with EXEC, CALL and many ways to define the variables.
Thank you very much for reading this post