I'm trying to access a Sybase database using Visual .net C#
using the code below.
I've added the Sybase data provider to the references (DDTek.Sybase)
and added them to the program usage. Howver it fails to connect and
gives an Unhandled exception of type "DDTek.Sybase.SybaseException' occured in
ddtek.sybase.dll
I can connect using the sybase SQL advantage with no problems.
Cheers
CHRIS
SybaseConnection Conn=new SybaseConnection("host=localhost;port=****;Interfa cesFile=SQLBOX7.ini;Server Name=SQLBOX7;DataBase Name=varis71");
Conn.Open();
try
{
Conn.Open();
Console.WriteLine("Connection Successful");
}
catch(SybaseException ex)
{
Console.WriteLine(ex.Message);
return;
}
Conn.Close();
--------------------------------
From: Chris Fox
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>1Uhtsa2u6ESNQDOyrMfZ+Q==</Id>