Collections:
"USE" - Setting the Current Database in SQL Server
How to set the current database in SQL Server?
✍: FYIcenter.com
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 "FyiCenterData" as the current database, and create a table in "FyiCenterData":
USE FyiCenterData GO Changed database context to 'FyiCenterData'. CREATE TABLE Links (Name NVARCHAR(32)) GO SELECT name, type_desc, create_date FROM sys.tables GO name type_desc create_date Links USER_TABLE 2007-05-19 23:05:43.700
⇒ "DROP DATABASE" - Deleting Databases in SQL Server
⇐ Simplest Way To Create New Databases in SQL Server
2016-11-24, 8306🔥, 0💬
Popular Posts:
What Is Transport Network Substrate (TNS) in Oracle? TNS, Transport Network Substrate, is a foundati...
How To Select All Columns of All Rows from a Table in Oracle? The simplest query statement is the on...
How To Query Tables and Loop through the Returning Rows in MySQL? The best way to query tables and l...
Collections: Interview Questions MySQL Tutorials MySQL Functions Oracle Tutorials SQL Server Tutoria...
What are DDL (Data Definition Language) statements for tables in SQL Server? DDL (Data Definition La...