Adding view to a schema

  • Hi

    I want to add a few of my Views to a Schema and then Grant rights onto that schema... granting rights is no Issue but i cant figure out how to Create a new Schema and add an existing view in it.

    Help me out here guyz

  •  

    CREATE SCHEMA myviews with authorization dbo;

     

    CREATE VIEW dbo.nastyview

    AS .....

    ALTER schema myviews TRANSFER dbo.nastyview

    David

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply