Skip to main content

USE

Preview Feature

Comment Script is a preview feature and is only available in the DAX Studio preview build. Its syntax and behavior may change before the final release.

USE selects a database on the current connection. It is equivalent to changing the database in the Metadata pane.

Syntax

--> USE <database-name>

Quote names that contain spaces, or leave the name unquoted through the end of the command line.

--> CONNECT SERVER localhost\tabular
--> USE "Adventure Works"

The database name supports SET variable expansion.