Languages
[Edit]
EN

MS SQL Server - Create database

0 points
Created by:
Dirask JS Member
3610

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]

MS SQL Server

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join