Hello.

I am using Sybase SQL Anywhere 11 on the server side.

The problem is I have a DSN with the ServerName and CommLinks set in it, and that's it.

I have some code in my C# application where I connect to the server and default database, and all works fine.

In my application I want to connect to another database running on the same server.

My problem is that when I state the DatabaseName in the connection string, it seems to ignore it. It just

connects to the default database.
BUT! When I define the DatabaseName in the odbc.ini file, it connects to the right database running on the

server and everything works as it should.

The connection string it self looks like this (where the variables are input parameters):
string connectionString = DSN=" +dsn +";UID=" +uid +";PWD=" +password +";DBN=" +dbn;

And I only get connected to the default database, when I specify the other database which is running on the server as the DBN.

Any pointers? I don't want to make a separate DSN for each of my databases, heh.