PC Review


Reply
Thread Tools Rate Thread

How to call a Stored Procedure in Oracle having Boolean IN paramet

 
 
=?Utf-8?B?Skxv?=
Guest
Posts: n/a
 
      26th Jul 2005
Hi Gurus,
I have a stored procedure which accepts boolean parameters as IN. In ado.net
the system.data.oracleclient does not have boolean data type when declaring
the parameter names.

Please advise what should be done and the possible workarounds.

I m in a tight position, and need a reply soon.
Many thanks,



--
Life is a box of chocolates. You never know what u get till you try it.
 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      26th Jul 2005
On Mon, 25 Jul 2005 23:14:01 -0700, JLo <(E-Mail Removed)> wrote:

¤ Hi Gurus,
¤ I have a stored procedure which accepts boolean parameters as IN. In ado.net
¤ the system.data.oracleclient does not have boolean data type when declaring
¤ the parameter names.
¤
¤ Please advise what should be done and the possible workarounds.
¤
¤ I m in a tight position, and need a reply soon.
¤ Many thanks,

A Boolean in Oracle is a PL/SQL specific data type. AFAIK there is no equivalent in the Microsoft
world.

You may want to use a VARCHAR2 or Number instead.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
=?Utf-8?B?Skxv?=
Guest
Posts: n/a
 
      28th Jul 2005
Hi Paul,
Even if I use Varchar2 or Number type in declaring the parameter, then what
do I pass to the parameter which expects a default Boolean value in the SP.

Also if I declare it as Varchar2 or Number in the parameters declaration in
..NET then do I need to make changes to the SP in Oracle PL/SQL.

Pls reply,
thanks


--
Life is a box of chocolates. You never know what u get till you try it.


"Paul Clement" wrote:

> On Mon, 25 Jul 2005 23:14:01 -0700, JLo <(E-Mail Removed)> wrote:
>
> ¤ Hi Gurus,
> ¤ I have a stored procedure which accepts boolean parameters as IN. In ado.net
> ¤ the system.data.oracleclient does not have boolean data type when declaring
> ¤ the parameter names.
> ¤
> ¤ Please advise what should be done and the possible workarounds.
> ¤
> ¤ I m in a tight position, and need a reply soon.
> ¤ Many thanks,
>
> A Boolean in Oracle is a PL/SQL specific data type. AFAIK there is no equivalent in the Microsoft
> world.
>
> You may want to use a VARCHAR2 or Number instead.
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Excel to call Oracle Stored procedure. pdcjlw1 Microsoft Excel Programming 1 9th Jul 2009 05:17 PM
how to call Oracle Stored Procedure from MS ACCESS 2007 VB csidb Microsoft Access VBA Modules 5 11th Oct 2008 12:44 AM
Call Oracle Stored Procedure from Access Jeremy Ellison Microsoft Access 1 22nd Mar 2008 09:05 PM
call a STORED PROCEDURE (oracle) from C# RicercatoreSbadato Microsoft C# .NET 3 19th Jun 2006 08:43 AM
Call Oracle Stored Procedure Frank Microsoft Access VBA Modules 1 25th Sep 2004 10:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:09 PM.