[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.odbcnet

Accessing a sybase anywhere 5.0 server

Nathan Going

8/19/2002 11:43:00 AM

I am trying to write I web-user interface that can make queries against a
Sybase Anywhere 5.0 Database. On the test setup, the Database server will
and IIS will be running on the same machine. My problem lies when I try to
make I connection to the database.

string strConnection="DSN=USData";

string strSelect="SELECT * FROM bl";

OdbcConnection odbcConnection=new OdbcConnection(strConnection);

OdbcCommand odbcCommand=new OdbcCommand(strSelect,odbcConnection);

OdbcDataAdapter odbcDataAdapter=new OdbcDataAdapter(odbcCommand);


odbcConnection.Open();



I get this error:

ERROR [08001] [Sybase][ODBC Driver]Unable to connect to database server:
unable to start database engine ERROR [01000] [Microsoft][ODBC Driver
Manager] The driver doesn't support the version of ODBC behavior that the
application requested (see SQLSetEnvAttr).

But from the server i can start sybase central with no problem using the
same settings as in the system-dsn USData.

Thanks much for any insight you might have,

Nathan Going





1 Answer

Ziemowit Skowronski

8/20/2002 11:26:00 AM

0

Hi

> ERROR [08001] [Sybase][ODBC Driver]Unable to connect to database server:
> unable to start database engine ERROR [01000] [Microsoft][ODBC Driver
> Manager] The driver doesn't support the version of ODBC behavior that the
> application requested (see SQLSetEnvAttr).

I'v this problem too and try sovle it in many ways. In my case this error
occured when IIS try stard DB Engine od DB Client. When I do this manually
all goes fine. I don't know reason of this behaviour but this should help.
You can manipulate options in DSN configuration - maby it's help (in my
machine doesn't help).

Good luck

Ziemowit Skowroñski
-------------------------------------------------------
ComputerLand S.A. - Poland - Gdansk Branch
PL-83-000 Pruszcz Gdanski, Czolgistow 8/10
phone: +48 58 69 29 236 , mobile: +48 608 468 186
mailto: zskowronski@computerland.pl
-------------------------------------------------------