The concept of database library, user, instance, session, mode

A schema is a node in the database architecture

for a SQL Server database.
To access a specific table, it can be composed of four parts:
server name, database name, schema name, and table name.

For accessing the local database,
because the server is already connected, there is no need to specify the
database name. The schema name is specified through the use database name
. If not specified, the database uses the dbo schema by default.

For accessing linked servers.
Linked server name. Database name. Schema name. Table name The

schema (schema) is
the table for each small item in each small item in a large project, placed under the respective schema (schema).
In this way, encountering small Inside the project. If there are tables with the same name, there will be no conflict.

For example, a company system.
There are two subsystems, namely the financial system and the human resources system.
These two subsystems share a database
.
Then the table of the financial system , can be placed in the financial schema (schema).
The table of the human resources system is placed in the schema of the human resources system.

These two subsystems can access each other's tables
but do not affect each other due to the problem of the same table name.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326167036&siteId=291194637