You are here:Home » SQL Server » Use statement is not supported to switch between databases, Use a new connection to connect to different database - SQL Azure Error

Use statement is not supported to switch between databases, Use a new connection to connect to different database - SQL Azure Error

A long ago, when I was worked with SQL Azure database, I received below error.

Use statement is not supported to switch between databases. Use a new connection to connect to different database.

It is due to, I was directly trying to make a different database connection using USE statement in query analyzer where MASTER database connection already made. See below screen shot of error.


After I changed a database connection as below and it was succeeded.



Let's share experience of SQL Azure.