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 stored procedures 1

Status
Not open for further replies.

Ravala

Programmer
Jan 28, 2004
88
US
We are using VB as Front-end and Oracle DB as back-end.
I know there is a suggestion to use the oracle procedures for modifying data. But it's so simple to use ADO and work with data thru VB objects.
What is the best way and why?

thanks.
 
Using stored procedures with ANY database can be much faster and is can give more security.

Besides there are things that you can do in one SP, but you would need a few pages of VB with ADO to do.

There's not a best way. It will depend on what you are doing with each bit of SQL.
Just to select a name from a table plain SQL is fine.
If you are building a recordset from several tables, and issuing case statements to convert/cast fields depending on the value of some of the fields of the tables being retrieve on the SP, then a SP IS the way to do it.



Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top