how to create a new database in microsoft sql server management studio code example
Example 1: CREATE DATABASE DatabaseName;
SHOW DATABASES;
DROP DATABASE testDB;
USE DatabaseName;
SQL> CREATE TABLE CUSTOMERS(
ID INT NOT NULL,
NAME VARCHAR (20) NOT NULL,
AGE INT NOT NULL,
ADDRESS CHAR (25) ,
SALARY DECIMAL (18, 2),
PRIMARY KEY (ID)
);
DESC CUSTOMERS;
Example 2: create a db
CREATE DATABASE <DB_NAME>;
CREATE TABLE <TB_NAME>(
<Elem 0> <Type_of_Elem created> <ADD_PROPRETIES>,
...
...
...
<Elem n> <Type_of_Elem created>
);