SQL Server > Query

Select database sql in SQL Server

How to select a database to work with in Query window in SQL Server?

We can use “use” keyword with the database name.

USE SqlHowTo

Above statement will change the database dropdown value to Sql HowTo like below

Now any query execution in the query window (right side panel) will execute against SqlHowTo database.

 Views: 1499 | Post Order: 41

Write for us