About Schema
A database Schema is defined as a concept to logically group objects such as tables, views, stored procedures etc. Schema is a layout of the tables, data types, relations etc. act as a container of objects.
All objects within a schema must have a unique name and the name of the schema should also be unique in the database.
How to Create Schema:
Syntax:
- Create Schema Schema_Name <Schema element>Data types
- CREATE TABLE Product1
- (
- iProductID INT IDENTITY(1,1)
- ,vProductName VARCHAR(100) NOT NULL
- ,vManfacturer VARCHAR(100) NOT NULL
- ,LastUpdated DATETIME DEFAULT GETDATE() ,
- PRIMARY KEY (iProductID, vManfacturer, vProductName)
- )
Example of Schema Created : A schema is created as in the following,

Once schema is created you can perform any SQL query like Update, Alter, Insert, Delete or Drop Schema.
Example: Here I used Insert Query.

How To Drop Schema: To drop schema follow the given syntax:
Syntax:

Once schema is created you can perform any SQL query like Update, Alter, Insert, Delete or Drop Schema.
Example: Here I used Insert Query.
- INSERT INTO Product1(vProductName, vManfacturer) VALUES('Television','Samsung')

How To Drop Schema: To drop schema follow the given syntax:
Syntax:
- DROP Schema Schema_Name
To view the Schema Change History follow the below steps:
Firstly, go to your Server Object Explorer, then right click on selected server. Now select Reports, after that select Standard Reports, then click on Schema Change History option as in the following screenshot,

A new query tab will be opened with all DDL Statements executed status with Server Name, Database Name, History (Since date & time), Object Name, Type, DDL Operation detail with Time as given below:


A new query tab will be opened with all DDL Statements executed status with Server Name, Database Name, History (Since date & time), Object Name, Type, DDL Operation detail with Time as given below:


SubashPosted Sep 7, 2016, 8:24 AM
Great one
Santhakumar MunuswamyPosted Nov 28, 2015, 2:29 AM
Nice share
Yashwant VishwakarmaPosted Nov 24, 2015, 5:18 AM
Nice share dude !!
Mukesh KumarPosted Nov 24, 2015, 4:47 AM
Good One
Banketeshvar NarayanPosted Nov 24, 2015, 4:15 AM
Nice Share
Akash MalhotraPosted Nov 24, 2015, 3:57 AM
Good one
Debasis SahaPosted Nov 24, 2015, 3:04 AM
Nice one..
Rajeesh MenothPosted Nov 24, 2015, 2:39 AM
Good Start!
Harshad PansuriyaPosted Nov 24, 2015, 2:26 AM
Nice one