May 20, 2009 at 6:34 am
i want to know the difference between login and users...
if a request came, "provide access to the database ABC of the server XYZ" what should i do...will i have to create a new user or a new login and granting access to the particular database....wat will happen if i gave database name as master while giving access to a login
May 20, 2009 at 6:52 am
A SQL Server login allows a user to connect to a server, whereas a
database user is associated with a login to allow specific permissions
on that database. A login is the base concept, and a dbuser inherits
from that.
[font="Comic Sans MS"]+++BLADE+++[/font]:cool:
May 20, 2009 at 6:56 am
if a request came, "provide access to the database ABC of the server XYZ" what should i do...will i have to create a new user or a new login and granting access to the particular database....wat will happen if i gave database name as master while giving access to a login
It means you have to provide a new login to access the database ABC of server XYZ.You have to create new login and map the to that particular user
[font="Comic Sans MS"]+++BLADE+++[/font]:cool:
May 20, 2009 at 7:00 am
shanila_minnu (5/20/2009)
i want to know the difference between login and users...
if a request came, "provide access to the database ABC of the server XYZ" what should i do...will i have to create a new user or a new login and granting access to the particular database....wat will happen if i gave database name as master while giving access to a login
Ok so firstly welcome and secondly it is important that you understand the difference.
Login:
A login is a record in the master database which gives access to the sql server (that’s not to say that any specific database access is implied, though this can be done via 'server roles'). There are two types of logins available in sql 2005. One is the sql login which is local to the server with its own password and sid stored in master. The second is Windows/NT accounts; these can be either NT accounts (local or domain) or groups. These accounts are essentially lookups to the DC (or account control service) to verify the authenticity of the credentials (also known as single sign-on).
User:
A useer is a 'Database User', this is essentially a shortcut or lookup store in the ABC database which records the fact that a 'Login' has access to do 'stuff'. The database ABC stores the logins SID and name (these must match up; ie, there can be complications when moving between servers (sql account) and domains (NT account).
To answer your questions; if a request comes to give a 'person' access who doesnt already have a 'Login', you must create a login on the sql server (sql or NT). Master as default database is the default (but without additional rights the cant do anything). You then create a Database User (can be done at login creation 'User Mappings') which gives the specific database access.
Hope that’s clear. If in doubt do a BOL search or let me know.
Adam Zacks-------------------------------------------Be Nice, Or Leave
May 20, 2009 at 7:16 am
how can we map a login to a user
May 20, 2009 at 7:17 am
how can we map a login to the user
May 20, 2009 at 7:49 am
why? has the database come from another server and already has users (orphaned)?
Adam Zacks-------------------------------------------Be Nice, Or Leave
May 20, 2009 at 7:53 am
When you create a login in SSMS, you have the chance to create and map a user at the same time.
If the login exists, CREATE USER will help you.
If they are orphaned, sp_change_users_login will help.
read books online for explanations.
May 20, 2009 at 8:15 am
i am using sql 2000 server
May 20, 2009 at 8:31 am
The same thing applies, in Enterprise Manager, when you create a login, you can create and map it to a user.
May 20, 2009 at 9:37 am
In Enterprise Manager, when you create a login, you can create and map it to a user.
Go to properties of login choose properties--> mapping then map to perticular database.
May 20, 2009 at 12:05 pm
In the properties of newly created login goto usermapping.There you can map databses to users and give them appropriate privileges
[font="Comic Sans MS"]+++BLADE+++[/font]:cool:
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply