[Mono-list] [Fwd: RE: Rodrigo Sybase Connect]

Rodrigo Moya rodrigo@ximian.com
Mon, 14 Jul 2003 20:22:08 +0200


I'll forward your mail to mono-list

-----Forwarded Message-----
> From: José Adolfo Riveros R. <jriveros@corpbanca.cl>
> To: Rodrigo Moya <rodrigo@ximian.com>
> Subject: RE: Rodrigo Sybase Connect
> Date: Mon, 14 Jul 2003 11:43:22 -0400
> 
>  
> Thanks Rodrigo
> 
> I recive this message
> 
> ============================================================================
> =============
> An unhandled exception of type 'System.OverflowException' occurred in
> mono.data.tds.dll
> Additional information: Arithmetic operation resulted in an overflow.
> ============================================================================
> =============
> 
> One thing I use VS.net 2003 with compnents Microsoft System.data etc.
> I attach Mono.Data.SybaseClient and I include in bin:Mono.Data.Tds.dll
> 
> Mi objective today is call Sybase because mdac > 2.5 don't work with this
> And I need keep the option to talk with my sybase.
> 
> string connectionString = 
> 				"Server=99.209.168.27,10001;" +
> 				"Database=db_tablas_grales;" +
> 				"User ID=fn_ptonet;" +
> 				"Password=ptonet2;";
> 			IDbConnection dbcon;
> 			dbcon = new SybaseConnection(connectionString);
> 			dbcon.Open();
> 			IDbCommand dbcmd = dbcon.CreateCommand();
> 			
> 			string sql ="select * from tb_gral0121_ejecutivos";
> 
> 			dbcmd.CommandText = sql;
> 			IDataReader reader = dbcmd.ExecuteReader();
> 			while(reader.Read()) //here I have the overflow
> 
> 
> 
> Atentamente:
>                      José Adolfo Riveros R.
>                      Jefe Dpto Tecnología
>                      CORP BANCA
>                      Fono: 687 8173
> 
> 
> 
> -----Original Message-----
> From: Rodrigo Moya [mailto:rodrigo@ximian.com] 
> Sent: Lunes, 14 de Julio de 2003 7:21
> To: José Adolfo Riveros R.
> Subject: Re: Rodrigo Sybase Connect
> 
> On Mon, 2003-07-14 at 00:34, José Adolfo Riveros R. wrote:
> > I, sorry
> >  
> > I need call a Sybase 11.0.4  server on Unix,
> >  
> > Can I connect with Mono
> >  
> > Mono.Data.SybaseClient or
> > Mono.Data.TdsClient.dll more compatible with old Sybase server.
> >  
> > I don need Sybase Client in the machine ?
> >  
> >  
> no, AFAIK, it works without any dependency. That is, it implements the TDS
> protocol directly, so you don't need extra libraries.
> 
> I may be wrong though, so try running a sample program against your Sybase
> database to be sure it works or not.
> 
> cheers
>