Page 1 of 1

MsSQL FreeTDS With Azure Connect

Posted: 01.07.2015, 01:32
by rzsistemas
I use a dbLib to conect with SQL server and FreeTDS_MsSQL-7.0. This is working so far.
But when I connect to azure i get the follow error:

DBError : [40508] : General SQL Server error: Check messages from the SQL Server
USE statement is not supported to switch between databases. Use a new connection to connect to a different database.

In microsoft I found ... 36282.aspx

Transact-SQL statements

The Transact-SQL USE command is not currently supported for switching between databases. Establish a connection directly to the target database.

in ZDBCDbLib i Found
procedure TZDBLibConnection.Open;
LogMessage: RawByteString;
if not Closed then


LogMessage := 'USE '+ ConSettings^.Database;

How I can conect to azure database ?