S
sjoshi
Hello All
I'm using this query
Select Distinct(prj.Name) as PrjName, prj.oid as PrjOid From
SITE61.PRJMGTProjectRoot prj,
SITE61.CORERELATIONDEST ic, SITE61.PRJMGTDatabase pd
Where prj.oid=ic.oidTarget
And ic.oid=pd.oid
And pd.oid= lant_oid
and getting a data-reader like this:
Dim cmdSQL As New OracleCommand
Dim conSQL As New OracleConnection
Dim drSQL As OracleDataReader
conSQL.ConnectionString = oRequest.ConnSetting
conSQL.Open()
cmdSQL.Connection = conSQL
cmdSQL.CommandText = oRequest.Command
cmdSQL.CommandType = oRequest.CommandType
cmdSQL.BindByName = True
AddParameters(cmdSQL, oRequest.Parameters) 'Add the prm with name
plant_oid and
'a RAW value. So far so good
'I then get an exception when I try to do the ExecuteReader
'Invalid parameter binding
'Parameter name: plant_oid
return cmdSQL.ExecuteReader(CommandBehavior.CloseConnection)
Any ideas what might be wrong here ?
thanks
Sunit
I'm using this query
Select Distinct(prj.Name) as PrjName, prj.oid as PrjOid From
SITE61.PRJMGTProjectRoot prj,
SITE61.CORERELATIONDEST ic, SITE61.PRJMGTDatabase pd
Where prj.oid=ic.oidTarget
And ic.oid=pd.oid
And pd.oid= lant_oid
and getting a data-reader like this:
Dim cmdSQL As New OracleCommand
Dim conSQL As New OracleConnection
Dim drSQL As OracleDataReader
conSQL.ConnectionString = oRequest.ConnSetting
conSQL.Open()
cmdSQL.Connection = conSQL
cmdSQL.CommandText = oRequest.Command
cmdSQL.CommandType = oRequest.CommandType
cmdSQL.BindByName = True
AddParameters(cmdSQL, oRequest.Parameters) 'Add the prm with name
plant_oid and
'a RAW value. So far so good
'I then get an exception when I try to do the ExecuteReader
'Invalid parameter binding
'Parameter name: plant_oid
return cmdSQL.ExecuteReader(CommandBehavior.CloseConnection)
Any ideas what might be wrong here ?
thanks
Sunit