Search code examples
sqlsql-server-2008ssms

How to create a SQL Schema in a Query?


How can I create a sql schema in a Query? I'm using MS SQL Server Management Studio (SQL Server 2008).


Solution

  • Just like this.

    USE [Sandbox]
    GO
    
    /****** Object:  Schema [MySchema]    Script Date: 08-05-2013 11:23:16 ******/
    CREATE SCHEMA [MySchema]
    GO