Forum Replies Created

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

  • RE: Giving error while creating schema

    Hi,

    I am using the following script

    set @Query='

    USE ['+@DatabaseName+']

    IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'''+@SchemaName+''')

    CREATE SCHEMA ['+@SchemaName+'] AUTHORIZATION ['+@UserName+']

    '

    exec (@Query)

    While executing its giving error "Incorrect...

  • RE: After creating DB | Need to set the DB as db_owner

    I have tried this sp_defaultdb lsr, temp... but in user mappings only the public check box is showing as checked...

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