Home  |  Linux  | Mysql  | PHP  | XML
Deprecated: Function ereg() is deprecated in /rscs/rs/websites/lmpx.com/code/nav/common.inc on line 99
Deprecated: Function ereg() is deprecated in /rscs/rs/websites/lmpx.com/code/nav/common.inc on line 82
From:kenn.minear Date:Wed Jan  6 01:33:36 2010
Subject:Re: Unable to cast AseCommandBuilder to DbCommandBuilder
Hi Paul,

I modified my code to check for Sybase as the backend and
used the AseCommandBuilder object directly. It works fine.
I can live with this workaround, but I think you should be
aware that there is some problem with not being able to cast
AseCommandBuilder to DbCommandBuilder.

Regards and thanks for your help, Kenn



> Also what happens when you do
>
> Sybase.Data.AseClient1.AseCommandBuilder ???
>
> -Paul
>
> <kenn.minear> wrote in message
> news:4b43a543.2918.1681692777@sybase.com... >I am
> > implementing a factory model with Sybase ASE as one of
> the available database backend engines. When I try to
> > cast the CommandBuilder, I get the following exception:
> >
> > "Unable to cast object of type
> > 'Sybase.Data.AseClient.AseCommandBuilder' to type
> > 'System.Data.Common.DbCommandBuilder'."
> >
> > My code is:
> > DbCommandBuilder builder = null;
> > builder =
> >
> (DbCommandBuilder)Activator.CreateInstance(typeof(Sybase.D
> > ata.AseClient.AseCommandBuilder) , adapter);
> >
> > I am using Sybase.AdoNet2.AseClient.dll and
> sybdrvado20.dll >
> > I do not have any problems casting other objects such as
> > a datareader or a datacommand.
> >
> > My environment is:
> > Microsoft Visual Studio 2008 |
> > Version 9.0.21022.8 RTM |
> > Microsoft .NET Framework |
> > Version 3.5 SP1 |
> > Installed Edition: C# Express |
> > Microsoft Visual C# 2008 91910-152-0000061-60814 |
> > Microsoft Visual C# 2008 |
> > Microsoft Windows Vista Ultimate
> > Version 6.0.6001 Service Pack 2 Build 6002 |
> > IIS Version 7.0.6000.16386 |
> > Express Studio Net 3.5 |
> >
> > Any suggestions or known issues with the AseADO client
> > would be helpful.
> >
> > Regards, Kenn
>
>
Navigate in group sybase.public.connectivity.adonet at sever forums.sybase.com
Previous Next


Your recent visits
Re: Sybase ado.net 2.0 provider... on mono
Re: Control Characters in Export
EAServer 6.3 Oracle Connection Cache problem



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants