1
Answer

Oracle Package Usage

Photo of steve.auld

steve.auld

20y
2k
1
I have been tasked with converting some old PERL code to a windows service utilizing C# and .NET. However, there are some very well done packages in our Oracle database which I would like to continue using. How does one go about calling one of these packages? The first ones I'm dealing with do not return any rows, but do return output parameters indicating number of rows updated and success status.

Answers (1)

0
Photo of goce  micevski
NA 19 0 20y
Create command: OracleCommand command=new OracleCommand(); command.Connection=conn; command.CommandType=CommandType.StoredProcedure; command.CommandText=packageName+"."+procedureName; Then: then add parameters for this command command.parameters.add(new oracleparameter.....) ... .. After that: Set values to the parameters... And : execute command.