hi all !
i have a problem with stored procedures.
i have wriiten a stored procedure that does some calculation . The procedure needs to called from the Front End .
Procedure is present on a oracle database.
the function executes without any error / problems but required action i suppose is not performed. procedure takes a single date variable as parameter.
The code is as follows:
the procedure is correct coz , when i execute the querry from sqlplus of oracle , its done properly. but same does not happen..
please help
thanks in advace
gk,
mumbai,India
i have a problem with stored procedures.
i have wriiten a stored procedure that does some calculation . The procedure needs to called from the Front End .
Procedure is present on a oracle database.
the function executes without any error / problems but required action i suppose is not performed. procedure takes a single date variable as parameter.
The code is as follows:
VB.NET:
Dim cm As OleDb.OleDbCommand
cm = New OleDb.OleDbCommand
cm.CommandType = CommandType.StoredProcedure
cm.CommandText = "%%procname%%"
cm.Connection = fmainform.GetConnection// here the connnection //with database is estblished
Dim cmm As OleDb.OleDbParameter
cmm = New OleDb.OleDbParameter
cmm.ParameterName = "@tdate"
cm.Parameters.Add(cmm)
Dim reader As OleDb.OleDbDataReader
cm.Parameters("@tdate").Value = "01-aug-2005"
cm.ExecuteNonQuery()
the procedure is correct coz , when i execute the querry from sqlplus of oracle , its done properly. but same does not happen..
please help
thanks in advace
gk,
mumbai,India