Hi
From my asp.net page , I am calling a function (made in oracle). it gives the following error:
ORA-01458: invalid length inside variable character string .
interestingly, the application works fine for the first time n when second time i try to run it gives the above error. But when i restart my system n again run it works perfrctly n to run second time i have to restart my system.
Here's the code am using:
Dim con As New OracleConnection("Password=tiger;" & _
"User ID=scott")
con.Open()
Dim myCMD As New OracleCommand()
myCMD.Connection = con
myCMD.CommandText = "leave_status"
myCMD.CommandType = CommandType.StoredProcedure
myCMD.Parameters.Add("code", OracleType.VarChar).Value = empcode.Text.ToString().Trim()
myCMD.Parameters.Add("type", OracleType.VarChar).Value = type.SelectedItem.ToString().Trim()
myCMD.Parameters.Add("sdate", OracleType.DateTime).Value = sd
myCMD.Parameters.Add("edate", OracleType.DateTime).Value = ed
myCMD.Parameters.Add("reason", OracleType.VarChar).Value = reason.Text.ToString().Trim()
myCMD.Parameters.Add("contact", OracleType.Number).Value = contact.Text.ToString()
myCMD.Parameters.Add("p_check", OracleType.Number).Direction = ParameterDirection.ReturnValue
myCMD.ExecuteNonQuery()
con.close()
Pls help to fix this....
Regards,
Ashima