Hi all,I understand the difference between a login (at instance level) and a user at database level.I have also tried out that a login and be mapped to multiple users from different database.I have also tried that a username can only be mapped to 1 login.But I have no idea what is the benefit of having the login / separated from the database.q1) is it so that 1 login can be use to access multiple database and also database can be "migrated" to another instance with a different set of logins (just to mapped them back to the users) ? is that all ?q2) when creating a new login, if i set the default database to master, even though there is no corresponding user in the masterdb, i will be login to login as guest user.however, when setting the default database to any other userdb, if there is not a corresponding user in the userdb mapped to the login, the login will fail. But there is a guest account in the userdb also. Why can't we login as guest for userdb ?q3) Lastly, how do we check if a privilege is a instance privilege or a database privilege ?for e.g. if i want to backup database, do i need to have the privilege/role for the database user, or i need to have instance privilege/role for the login ?That's all folk. ! Thanks for all the replies!Regards,Noob
↧