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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you load data from an Oracle ref cursor into a datagrid?

Status
Not open for further replies.

emaduddeen

Programmer
Mar 22, 2007
184
US
Hi Everyone,

I have been reading that placing all SQL queries into ref cursors is more secure than having them float around the Visual Basic exe file.

That is way I would like to know how to load data from an Oracle ref cursor into a datagrid.

For now I would use the scott, tiger default Oracle database and have created a package called pkg_emad and a procedure called data_from_dept_and_emp and the ref cursor would be called dept_and_emp_ref_cursor.

Maybe it needs to be loaded into a dataset first then into the datagrid but I don't know how to do that either.

Ultimately, I would like to be able to insert, change and delete from the datagrid and have those changes reflected in the database.

Hopefully I'm not asking to much but any help will be a good learning experience for me.

Thanks.

Truly,
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top