Re: permissions for Desktop engine
From: Cedric Zaugg (czaugg@aesa.ch)
Date: 06/06/02
- Next message: Shamim: "Re: Multi-Server Job"
- Previous message: Laltayn: "Check for users and roles"
- In reply to: Dan Guzman: "Re: permissions for Desktop engine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Cedric Zaugg" <czaugg@aesa.ch> Date: Thu, 6 Jun 2002 15:57:56 +0200
Thanks a lot for your help
Cedric
"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message
news:eoEiGtVDCHA.1560@tkmsftngp02...
> You can setup security with system stored procedures and execute these
> with the OSQL utility or any ad-hoc SQL application. The basic steps
> are to add the login to SQL Server, grant database access and role
> membership (optional). Below are some untested examples. See the Books
> Online for details.
>
>
> --add SQL Authentication login
> EXEC sp_addlogin 'MyLogin', 'MyPassword'
> EXEC sp_defaultdb 'MyLogin', 'MyDatabase'
>
> --add Windows Authentication login (existing Windows user)
> EXEC sp_grantlogin 'MyDomain\MyLogin'
> EXEC sp_defaultdb 'MyDomain\MyLogin', 'MyDatabase'
>
> USE MyDatabase
>
> --setup object permissions
> EXEC sp_addrole 'MyRole'
> GRANT ALL ON MyTable TO MyRole
>
> --grant database access
> EXEC sp_grantdbaccess 'MyLogin'
> EXEC sp_grantdbaccess 'MyDomain\MyLogin'
>
> --add role membership
> EXEC sp_addrolemember 'MyRole', 'MyLogin'
> EXEC sp_addrolemember 'MyRole', 'MyDomain\MyLogin'
>
>
> --
> Hope this helps.
>
>
> Dan Guzman
> SQL Server MVP
>
> -----------------------
> SQL FAQ links (courtesy Neil Pike):
>
> http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
> http://www.sqlserverfaq.com
> http://www.mssqlserver.com/faq
> -----------------------
>
> "Cedric Zaugg" <czaugg@aesa.ch> wrote in message
> news:adn6li$h4v$1@rex.ip-plus.net...
> > Hi,
> >
> > How can I setup usernames and passwords for the Desktop engine without
> > having the Entreprise Manager installed?
> >
> > Thanks,
> > Cedric
> >
> >
>
>
- Next message: Shamim: "Re: Multi-Server Job"
- Previous message: Laltayn: "Check for users and roles"
- In reply to: Dan Guzman: "Re: permissions for Desktop engine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|