Re: when to use sa and when not to..
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 06/02/04
- Next message: Hari Prasad: "Re: SQL Memory"
- Previous message: Julie: "Re: Maintenance PLan recommendation"
- In reply to: newbie: "when to use sa and when not to.."
- Next in thread: newbie: "Re: when to use sa and when not to.."
- Reply: newbie: "Re: when to use sa and when not to.."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 2 Jun 2004 21:31:38 +0530
Hi,
Database Backup and Restore can be done by a user which has gor db_owner
role. The user with db_owner role can almost all the tasks in the database.
he will not be able to do administrative stuffs in other database/system
databases.
SA will be having previlages to all the databases, plus
1. Adding logins/users
2. Adding roles/ assigning server wide fixed roles
3. Process administration
4. database creation
5. replication
etc...
In general SA can do any activity SQL server wide on all databases.
Note:
As DBA / owner of sql server you can use SA user to do all activity, but for
application accessing provide only the db_owner user to
developers/application users
Thanks
Hari
MCDBA
"newbie" <anonymous@discussions.microsoft.com> wrote in message
news:73466013-2037-4B92-876B-38F4AC0019CB@microsoft.com...
> Hi,
>
> My shrink wrap app uses one database and has 1 login mapped to the same
user (login and user have same name), so
> database: MyDB
> Login: MyAppUser (sa is kept in the list of logins as it is with a
password assigned)
> User: MyAppUser
> Password for login: MyPassword
> Authentication: SQL
> SQL Instance: MSSQL$MyApp
>
> MyAppUser is not part of sysadmin group but is a dbo for MyDB.
>
> My confusion is that when should I log into the MSSQL$MyApp as sa and when
as MyAppUser. I know that while doing the database restore I should be
logged in as sa into the Master db. But in general, which are the other
operations where it is best to login as sysadmin. I want to keep all the
application related tasks limited to MyAppUser and the administration part
to sa.. or what do you recommend.
>
> Thanks
- Next message: Hari Prasad: "Re: SQL Memory"
- Previous message: Julie: "Re: Maintenance PLan recommendation"
- In reply to: newbie: "when to use sa and when not to.."
- Next in thread: newbie: "Re: when to use sa and when not to.."
- Reply: newbie: "Re: when to use sa and when not to.."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|