How to Create a database architecture

Source: Internet
Author: User
SQL Server 2008 r2Other Versions

 

This topic describes how to create an architecture. For more information about how to use the architecture, see user architecture separation.

Use SQL Server Management studio to create a schema
  1. In SQL Server Management studio, open the object Resource Manager and expand"Database"Folder.

  2. Expand the database in which you want to create a new database architecture.

  3. Right-click"Security"Folder, pointing"New"And then click"Architecture".

  4. In"Regular"Page"Architecture name"Enter the name of the new architecture.

  5. In"Architecture owner"Enter the name of the database user or role that you want to own the schema.

  6. Click OK ".

Use Transact-SQL to create a schema
  1. In the query Editor, run the following Transact-SQL command to connect to the database in which you want to create a new database architecture:

    Use <Database Name> go
  2. Run the following Transact-SQL command to create a user:

    Create schema <new schema Name> authorization [new schema owner]; go
    References: http://www.uol123.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.