Page 1 of 1

Create an ASE ODBC data source programmaticaly

Posted: Wed 12 Jul 2017 16:18
by cipave
Hi,

I want to create an ASE ODBC data source programmaticaly on a Windows 2008 Server.
For doing this I try to implement a c# console application that use windows api functions from odbccp32.dll.
The problem is that I don't know exactly wich attributes I need to set. I tried using this attributes DSN=MyDSN;Data Source=MyASEServer;Database=MyDatabase;Port=MyPort;User ID=MyUser;Password=MyPassword but it does not work, I get an ODBC_ERROR_REQUEST_FAILED error that is a generic error.
The Devart ASE Driver is installed corectly because when I use odbcad32.exe evrything works fine.

Thanks,
Ciprian Pavel

Re: Create an ASE ODBC data source programmaticaly

Posted: Thu 13 Jul 2017 07:35
by MaximG
Thank you for the information. To investigate the problem, please compose and send us via the e-support form (https://www.devart.com the "Support"\"Request Support" menu) a small sample in which the problem occurs.