Solved

Oracle function from VB.NET

Posted on 2006-11-21
2
309 Views
Last Modified: 2010-04-23
Does anyone know how to call a oracle function directly from VB.net?  Thank you.
0
Comment
Question by:Sanmarie
2 Comments
 
LVL 8

Accepted Solution

by:
doobdave earned 500 total points
ID: 17995048
Hi,

I would think you need to use ADO.NET to do that.

Create a connection object, and a command object.
Set the command object's text to be the call to the Oracle function.
Open the connection object and execute the command object.

Best Regards,

David
0
 

Author Comment

by:Sanmarie
ID: 17996184

We are using the OLEDB object not oracle client. We did what you are describing but it is throwing an exception. We read that it might work  if we use the oracle client.

Nevertheless, we have decided to embed the function in a stored procedure to get it to work. Thanks for your help

San
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question