Home All Groups Group Topic Archive Search About

System.Data.Common.DbCommand v/s Oracle.OracleAccess.Client.OracleCommand

Author
23 Feb 2007 12:43 PM
Kuldeep
Hi All,

Platform: Visual Studio 2005
Programming Language: C#.NET
Technology: ASP.NET [though it doesnot matter!]

I am here trying to integrate System.Data.Common.DbCommand with
Oracle.OracleAccess.Client.OracleCommand for an ExecuteReader method..
While doing this, I get this error message:

"Error 36 Argument '1': cannot convert from
'Oracle.DataAccess.Client.OracleCommand' to 'System.Data.Odbc.OdbcCommand'
c:\inetpub\wwwroot\AppName\App_Code\DAL\OracleClient\OracleOperatorsProvider.cs
64 70 "

Is this a known problem that I need to tweak the code a bit to make it
work???

Any guidance on this is highly appreciated.

Thanks,
Kuldeep

Author
14 Mar 2007 5:14 PM
Mary Chipman [MSFT]
What are you trying to achieve? IOW, what is the purpose of trying
integrate DbCommand with OracleCommand?

--Mary

On Fri, 23 Feb 2007 18:13:54 +0530, "Kuldeep"
<kuldeep.vijayku***@hotmail.com> wrote:

Show quote
>Hi All,
>
>Platform: Visual Studio 2005
>Programming Language: C#.NET
>Technology: ASP.NET [though it doesnot matter!]
>
>I am here trying to integrate System.Data.Common.DbCommand with
>Oracle.OracleAccess.Client.OracleCommand for an ExecuteReader method..
>While doing this, I get this error message:
>
>"Error 36 Argument '1': cannot convert from
>'Oracle.DataAccess.Client.OracleCommand' to 'System.Data.Odbc.OdbcCommand'
>c:\inetpub\wwwroot\AppName\App_Code\DAL\OracleClient\OracleOperatorsProvider.cs
>64 70 "
>
>Is this a known problem that I need to tweak the code a bit to make it
>work???
>
>Any guidance on this is highly appreciated.
>
>Thanks,
>Kuldeep
>

AddThis Social Bookmark Button