Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

MSSQL Interview Questions and Answers

Ques. How to set the current database in MS SQL Server?
Ans. Once you are connected to the SQL Server, you should select a database to work with and set it as the current database using the "USE" statement with this syntax:

USE database_name

The following tutorial example shows you how to set "YourDataBaseName" as the current database, and create a table in "YourDataBaseName":

USE YourDataBaseName
Changed database context to 'YourDataBaseName'.


SELECT name, type_desc, create_date FROM sys.tables
name type_desc create_date
Links USER_TABLE 2007-05-19 23:05:43.700
Is it helpful? Yes No

Most helpful rated by users:

©2020 WithoutBook