Question

Whenever I attempt to submit a query to Azure Synapse SQLDB (or try to do anything with the database from my application called DBForge) I get the following error message:

USE statement is not supported to switch between databases

Can someone let me know how to overcome this issue?

No correct solution

OTHER TIPS

If you check out the documentation for the USE statement, you'll see that it is not supported for Azure Synapse Analytics (formerly Azure SQL DW).

To change database contexts, you'll have to open an explicit connection to the desired database.

If you're having issues with your IDE, try specifying the desired database in your connection string when you connect so there is no switching required.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top