use

Description

Specifies the database with which you want to work.

Syntax

Transact-SQL Syntax

use database_name 

ODBC Syntax

No ODBC SQL equivalent.

Parameters

database_name

is the name of the database you want to access.

Usage

Supported only for drivers and targets that support the ODBC SQL_CURRENT_QUALIFIER connection option. For these targets, the current connection is dropped, and a new connection is opened with SQL_CURRENT_QUALIFIER set to database_name.