How to change the current database in an SQL Query window in SSMS?
Read this link

This issue occurs because Azure SQL Database does not support the "use" command.

You have to install the latest cumulative update for SQL Server