Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view schema of Microsoft SQL Server?

I need a schema of Microsoft SQL Server like in this screenshot:

enter image description here

I created a schema according to Create Schema in SSMS , but I can not view it in Microsoft SQL Server Management Studio.

Databases -> [YourDatabase] -> Security -> Schemas -> (right-click) New schema

Where to view schema?

I go to Security -> Schemas -> myschemaname click on it and appears nothing.

Thanks for help, I am new to Microsoft SQL Server.

like image 672
cat Avatar asked Feb 17 '18 10:02

cat


People also ask

How do I find my SQL database schema?

To create a schemaIn Object Explorer, expand the Databases folder. Expand the database in which to create the new database schema. Right-click the Security folder, point to New, and select Schema. In the Schema - New dialog box, on the General page, enter a name for the new schema in the Schema name box.

What is the command to view schema in SQL?

To show the schema, we can use the DESC command. This gives the description about the table structure.

How do I view a schema?

You can turn on schema view by selecting Schema view in the View tab.

How do I find schema objects in SQL Server?

We can use SSMS in-built object search functionality to find out specific objects across all online databases in SQL instance. Navigate to View-> Object Explorer Details in SSMS. You can use a keyboard shortcut F7 to open it.


1 Answers

Based on screenshot I assume that you want database diagram.

SSMS -> Object Explorer -> Database Name -> Database Diagram-> RC (Right Click) -> New Database diagram -> Add table

More info: Getting started with SQL Server database diagrams

like image 191
Lukasz Szozda Avatar answered Oct 20 '22 04:10

Lukasz Szozda