Re: 3 Simple Security SQL Statements



Alex Maghen (AlexMaghen@xxxxxxxxxxxxxxxx) writes:
Hi. Can you please help me with three simple Transact SQL Statements
that do set up configurations? I'm having trouble with the specifics:

1. CREATE A USER "WebUser" in current database which uses a Windows Login,
"SERVER\IUSR_XYZ"

2. Give the above user "WebUser" ROLE membership in a database Role names
"WebUsersRole"

3. GRANT Execute permissions to the ROLE "WebUsersRole" for ALL Stored
Procedures in the database which start with the name "HM_"

I've been banging my head over this syntax for many hours and it's
making me NUTS! :)

And your professor was so mean that he did not give you hints where in
the manual you should look?

He did not even tell you which version of SQL Server you should use?


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: 3 Simple Security SQL Statements
    ... SQL Server you are working with. ... You need to first to run CREATE LOGIN to create ... EXEC sp_addrolemember 'WebUsersRole', 'WebUser' ... up in Books Online under sys.objects to make sure. ...
    (microsoft.public.sqlserver.security)
  • Re: 3 Simple Security SQL Statements
    ... Second, SQL Server 2005. ... CREATE A USER "WebUser" in current database which uses a Windows ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.security)
  • Re: 3 Simple Security SQL Statements
    ... Erland did not tell you to read the manual. ... Kalen Delaney, SQL Server MVP ... CREATE A USER "WebUser" in current database which uses a Windows ...
    (microsoft.public.sqlserver.security)
  • Re: Licensing Question
    ... the database through one user account, ... are planning on using the "webuser" mssql account to achieve this ... David Portas, SQL Server MVP ...
    (comp.databases.ms-sqlserver)
  • Licensing Question
    ... We are planning on building the application to connect to ... the database through one user account, ... are planning on using the "webuser" mssql account to achieve this ...
    (comp.databases.ms-sqlserver)