Home Forums SQL Server 2012 SQL 2012 - General how to create user that can login to create and edit but cannot delete? RE: how to create user that can login to create and edit but cannot delete?

  • clintonG (3/16/2013)


    You could grant the user insert and update permission on the schema the objects reside in.

    I was going to try it this way:

    EXEC sp_addrolemember db_datareader, $(DatabaseUserName)

    EXEC sp_addrolemember db_datawriter, $(DatabaseUserName)

    REVOKE DELETE

    ON $(DatabaseName)

    FROM {$(DatabaseUserName)}

    * Is the syntax correct?

    * Is there anything problematic with this approach?