Question : Invalid attribute in connection string: Server.

I'm trying to make an ODBC DSN-less connection to a Sybase database.  Whenever I build up my connection string I get this error:

ERROR [HY000] [MERANT][ODBC Sybase ASE driver]Insufficient information to connect to the data source.
ERROR [01S00] [MERANT][ODBC Sybase ASE driver]Invalid attribute in connection string: Server.
ERROR [HY000] [MERANT][ODBC Sybase ASE driver]Insufficient information to connect to the data source.
ERROR [01S00] [MERANT][ODBC Sybase ASE driver]Invalid attribute in connection string: Server.

(Not sure why it comes up twice, that's how VS.NET reports it, though.)

The connection string I've built looks like this (Names changed to protect the innocent):
Driver={SYBASE ASE ODBC Driver};Server=SURF12;DB=[db-name];Uid=[uid];Pwd=[pwd];

I take it the Sybase driver doesn't know what to do with the "Server" key name.  What does it want?

I had this working with Ole-DB for a while, but for various reasons we have to go with ODBC now.  I'm developing in VS.NET 2003, using C#.  I build the connection string based on values in an app.config file.

Answer : Invalid attribute in connection string: Server.

PAQed, with points refunded (250)

modulo
Community Support Moderator
Random Solutions  
 
programming4us programming4us