D
Darth Ferret
On the last statement below, I am getting this error -
'System.InvalidCastException'
Does anyone know what is causing this? I am trying to pass a parameter to a
stored procedure in an iseries. My connection opens and I can call a stored
procedure with no parameters. The problem is that I cannot pass any
parameters.
'create command object
Dim cmd As New iDB2Command(sql, cn
Dim cmdparm1 As New OleDb.OleDbParameter("QRYNAME", OleDb.OleDbType.Char,
10)
cmd.Parameters.Clear()
cmdparm1.Value = "SUNTR401A"
cmdparm1.Direction = ParameterDirection.InputOutput
cmd.Parameters.Add(cmdparm1)
Thanks in advance,
Joe in Florida
'System.InvalidCastException'
Does anyone know what is causing this? I am trying to pass a parameter to a
stored procedure in an iseries. My connection opens and I can call a stored
procedure with no parameters. The problem is that I cannot pass any
parameters.
'create command object
Dim cmd As New iDB2Command(sql, cn
Dim cmdparm1 As New OleDb.OleDbParameter("QRYNAME", OleDb.OleDbType.Char,
10)
cmd.Parameters.Clear()
cmdparm1.Value = "SUNTR401A"
cmdparm1.Direction = ParameterDirection.InputOutput
cmd.Parameters.Add(cmdparm1)
Thanks in advance,
Joe in Florida