Kairan
Kairan

Reputation: 5542

What is the opposite of SQL Use DatabaseName to NOT USE database?

When I am working on my database I connect with USE but what if I want to stop using the database, what is the opposite of USE?

I am using MS SQL Server Mgmt Studio in a Query window to call the USE.

Upvotes: 7

Views: 4915

Answers (1)

NDJ
NDJ

Reputation: 5194

I think your only option is to use another database, or end the script - there is no End Use as it were.

Upvotes: 4

Related Questions