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
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
>
>
|