Getting error USE statement is not supported to switch between databases with Azure Synapse formerly SQLDW

dba.stackexchange https://dba.stackexchange.com/questions/269742

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?

Pas de solution correcte

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à dba.stackexchange
scroll top