I am passing the paramter value to my sql statement and below is the code I used to pass the value to sql statement. p.contid is a character field.Oracle is the db. thanks
...
.Append(" AND P.contid = :ContractNumber ")
...
Dim cmdItemDetail As OracleCommand = New OracleCommand()
cmdItemDetail.Parameters.AddWithValue(":ContractNumber", "'"& ContractId & "'")
...
.Append(" AND P.contid = :ContractNumber ")
...
Dim cmdItemDetail As OracleCommand = New OracleCommand()
cmdItemDetail.Parameters.AddWithValue(":ContractNumber", "'"& ContractId & "'")