Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oracle objects for OLE 1

Status
Not open for further replies.

Ravala

Programmer
Jan 28, 2004
88
US
I use OraParameter object supporting PL/SQL cursor.
When I create ora parameter if there is way to know in advance that parameter exists.
I code:
MyDatabase.Parameters.Add "NAME", "JOCKSPORTS", ORAPARM_INPUT
MyDatabase.Parameters("NAME").ServerType = ORATYPE_VARCHAR2
some code ....
MyDatabase.Parameters.Remove ("NAME")

Still sometimes I have error: duplicate parameter name.

Thanks.
 
Ravala

Each time before you want to add parameters just run code like this:

For i = MyDatabase.Parameters.Count To 0 Step -1
MyDatabase.Parameters.Remove (i)
Next i

vladk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top