EN
MS SQL Server - Create database
0
points
In this article, we would like to show you how to create database in MS SQL Server.
Quick solution:
CREATE DATABASE [database_name];
CREATE DATABASE example
In this example, we will create a new database - diraskDB
.
Query:
CREATE DATABASE [diraskDB];
CREATE DATABASE IF NOT EXISTS example
Query:
IF NOT EXISTS(SELECT 1 FROM sys.databases WHERE name='diraskDB')
CREATE DATABASE [diraskDB]