Re: Using ODP.NET connection for executing ADODB Command object
From: Sandeep Limaye (sandeep_limaye_at_persistent.co.in)
Date: 06/04/04
- Next message: nycboy: "Fast Update 10,000 Access records"
- Previous message: michaeld_at_somewhere.nu: "Microsoft Provider for Oracle and NCLOB"
- In reply to: David Browne: "Re: Using ODP.NET connection for executing ADODB Command object"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Jun 2004 21:55:16 +0530
Thanks David...yes, I agree that at some point in time we must get rid of
the old ADO and move on. But we need to provide some means of catering for
existing COM clients (that are not willing to move on, or will take some
time to move on) that pass the old ADO command objects to the
database-accessing component that has adhered to the newer data providers
(like ODP.NET).
Thanks again,
Sandeep
"David Browne" <davidbaxterbrowne no potted meat@hotmail.com> wrote in
message news:uE107NkSEHA.1508@TK2MSFTNGP11.phx.gbl...
>
> "Sandeep Limaye" <sandeep_limaye@persistent.co.in> wrote in message
> news:uDaIB5jSEHA.1448@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > I'm connecting to Oracle 9i database using ODP.NET (Using the
> > OracleConnection class). Can I use the same currently open connection
for
> > executing a stored procedure / query through an ADODB.Command object?
> >
>
> No. That cannot be done.
>
> > I may be expecting a bit too much, but is there any way that I can
achieve
> > this? I do not want to open a separate connection through
> ADODB.Connection,
> > and I also do not want to convert the ADODB.Command object to an
> > OracleCommand because the two differ greatly in their "CommandText"
> formats,
> > and it's a great pain if the CommandText is complex and has parameter
> > holders.
> >
>
> You really should byte the bullet and get rid of old ADO.
> ODP.NET binds parameters by position, or by name, whichever you prefer,
and
> it uses exactly the same "CommandText" format as PL/SQL and SQLPlus. So
as
> an added bonus, you can cut and paste from Visual Studio into Toad or
> SQLPlus or whatever.
>
> David
>
>
- Next message: nycboy: "Fast Update 10,000 Access records"
- Previous message: michaeld_at_somewhere.nu: "Microsoft Provider for Oracle and NCLOB"
- In reply to: David Browne: "Re: Using ODP.NET connection for executing ADODB Command object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|