USE (Azure SQL Database)
This topic is OBSOLETE. You can find the most current version in the SQL 14 Transact-SQL Reference.
|This topic is not being maintained. For the current version, see USE.|
Maintains the database context as the current database.
In Microsoft Microsoft Azure SQL Database, the database parameter can only refer to the current database. The USE statement does not switch between databases. To change databases, you must directly connect to the database.
For more information about the USE statement, see USE in SQL Server Books Online.
If you attempt to switch to another database using the USE statement you will receive an error code 40508.