Languages
[Edit]
EN

MS SQL Server - Create database

0 points
Created by:
Barmar
338

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]
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Cross technology - Create database

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