Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Schema in SSMS

I know it is ridiculously easy to create a schema in TSQL:

CREATE SCHEMA <Schema Name>

I had someone ask how to do this through SQL Server Management Studio. I couldn't locate the context menu item to replicate this in SSMS. Anyone know how?

like image 892
JR Kincaid Avatar asked Jun 24 '11 14:06

JR Kincaid


People also ask

What are schemas in SSMS?

In SQL Server, a schema is a logical collection of database objects such as tables, views, stored procedures, indexes, triggers, functions. It can be thought of as a container, created by a database user. The database user who creates a schema is the schema owner.

Why do we create schema in SQL Server?

A SQL schema is a useful database concept. It helps us to create a logical grouping of objects such as tables, stored procedures, and functions.

What does create schema do?

CREATE SCHEMA can create a schema, the tables and views it contains, and GRANT, REVOKE, or DENY permissions on any securable in a single statement. This statement must be executed as a separate batch. Objects created by the CREATE SCHEMA statement are created inside the schema that is being created.


1 Answers

In Object Explorer go to: Databases -> [YourDatabase] -> Security -> Schemas -> (right-click) New schema

SSMS Schema

like image 97
rciq Avatar answered Oct 18 '22 05:10

rciq