ducvancong (2/19/2012)
Hi ! I create application role and grant all permission in database for it . but , when I want create new login and user in my application, I cannot, although i can select, update in my database.
Are you trying to create a new server login and a new database user while in the context of an Application Role? I am not sure you can do that given that an Application Role is a database principal and your server login context is not available when in the context of an Application Role. You can hop in and out of the Application Role context though using sp_setapprole and sp_unsetapprole. Does the login initiating the Application Role session have permission to create server logins? i.e. is it in the sysadmin or securityadmin fixed server role?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato