CREATE DATABASE (TSQL Statement)

creates a new database.

Syntax

CREATE DATABASE database_name

Arguments

database_name
is the name of the database to create.

Remarks

Only sa is allowed to execute this statement.

This statement does the following:

The command SHOW D displays the list of all databases.

Examples

CREATE DATABASE mydb;