Calling Oracle OCI from C#

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

Hi All
I would like to call the following:

OCIAttrGet(ParamHandle,
OCI_DTYPE_PARAM,
HasDefault,
Nil,
OCI_ATTR_HAS_DEFAULT,
ErrorHandle);

from C#. Does anyone have any examples of how you go about calling
OCI? I am trying to find out if a stored procedure has a default
value, and there is now way to do this using any of the ADO drivers
for .NET.

Thanks in advance
Kevin
 
Kevin,

You could easily call this through the P/Invoke layer. You left out the
return type of the call to OCIAttrGet. If you know what the types are for
the parameters as well, then you should easily be able to create a
declaration to call through P/Invoke.
 
Kevin,

You could easily call this through the P/Invoke layer. You left out the
return type of the call to OCIAttrGet. If you know what the types are for
the parameters as well, then you should easily be able to create a
declaration to call through P/Invoke.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




Hi All
I would like to call the following:

from C#. Does anyone have any examples of how you go about calling
OCI? I am trying to find out if a stored procedure has a default
value, and there is now way to do this using any of the ADO drivers
for .NET.
Thanks in advance
Kevin- Hide quoted text -

- Show quoted text -

Thanks Nicholas, I will check it out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top