Re: managing msde with nt authentication

From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 09/24/04


Date: Thu, 23 Sep 2004 23:02:38 -0500

By default, only members of the local administrators group can access SQL
Server. You can grant non-admin users access with sp_grantlogin:

    EXEC sp_grantlogin 'MyComputer\MyUser'

Then, add the user to any databases needed using sp_grantdbaccess:

    USE MyDatabase
    EXEC sp_grantdbaccess 'MyComputer\MyUser'

Finally, add the users to database roles as desired:

    USE MyDatabase
    EXEC sp_addrolemember 'MyRole', 'MyComputer\MyUser'

Of course, you'll also need to GRANT the user or role any database
permissions needed:

    GRANT SELECT ON MyTable TO MyRole

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Ed Johnson" <nospam@nospam.com> wrote in message 
news:eOrV5ceoEHA.3524@TK2MSFTNGP10.phx.gbl...
>I have my program running right now on sqlserver authentication because it
> was easy to maintain and seemed to get around the need for managing user
> rights in a domain. But I wanted to know the practical steps of how to
> change my application to use nt authentication. Do I have to be on a 
> domain
> to use nt authentication? I know that you can't use NT authentication on
> Win9x OSes. If my clients are running on Windows NT derivatives and they 
> are
> all running local MSDE databases on their on computers, how do I manage
> their logons using NT integrated security? Do I have to add them to the
> sqlserver user database? It seems like when I used a logon with admin 
> rights
> I did not have to do that, but when a customer logged on with only power
> user rights in the domain that they could not use nt authentication - is
> that because I did not have their name in the mssql server database user
> list? How do I maintain security for MSDE on a local instance using NT
> authentication? Thanks for any advice?
>
> From: Ed
>
> 


Relevant Pages

  • Re: Using SSPI with Custom Authentication
    ... It boils down to moving the security perimeter away from the server. ... first database contains all of the user information; ... perform authentication, and users need to be authenticated before accessing ...
    (microsoft.public.dotnet.security)
  • Re: server authentication & ASP authentication
    ... Are the web server and DB on the same machine? ... My primary inclination would be to use platform authentication across the ... and Windows authentication to the database. ...
    (microsoft.public.sqlserver.security)
  • Re: Authentication & Authorization advice
    ... MSDN has a good example of authentication using AD. ... If you're going to use a secure database, all you really need to know is ... server and connecting to the database or LDAP server. ... connects to the app server through a firewall to a specified port. ...
    (microsoft.public.dotnet.framework.aspnet)
  • User authentication over the web (was: Secure Password in database)
    ... Subject: User authentication over the web (was: Secure Password in database) ... a web server is usually authenticated to users by using SSL or TLS ...
    (SecProg)
  • Create SharePoint Portal failed.
    ... One mentioned ensuring that SQL Server uses a case ... 13:55:40 Service database server is 'USDC-JOHRIV'. ... Update dbo.propertylist set DisplayName = N'Last name' ...
    (microsoft.public.sharepoint.portalserver)