Skip to content

amanz/SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Create a Database in SQL using Microsoft SQL Server

CREATE DATABASE

The CREATE DATABASE statement is used to create a new SQL database. The following SQL statement creates a database called "MyDB"

create DB

DROP DATABASE

The DROP DATABSE statement is used to drop an existing SQL database.

drop db

**Note: Be careful before dropping a database. Deleting a database will result in loss of complete information stored in the database.

RENAME DATABASE

We can rename a database in MS SQL Server by using ALTER DATABASE statement or perform a SQL stored procedure.

rename DB

SHOW/SELECT DATABASE

We can use SQL statement to display a list of database on the SQL Server.

show select db

About

Create a Database in MS SQL Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published