November 15, 2011 at 4:12 am
How to create a user in db without Login?
In some databases I have seen it.
Thanks
November 15, 2011 at 4:15 am
In SSMS, select your database, select 'Security', right-click 'Users' : 'New users...'
Ok, found your problem.. 🙁
You cann't select "Without login" 🙁
November 15, 2011 at 4:18 am
USE AdventureWorks2008R2 ;
CREATE USER CustomApp WITHOUT LOGIN ;
GRANT IMPERSONATE ON USER::CustomApp TO [adventure-works\tengiz0] ;
GO
November 15, 2011 at 4:18 am
Rhox (11/15/2011)
In SSMS, select your database, select 'Security', right-click 'Users' : 'New users...'Ok, found your problem.. 🙁
You cann't select "Without login" 🙁
OR
CREATE USER user_name
[ { { FOR | FROM }
{
LOGIN login_name
| CERTIFICATE cert_name
| ASYMMETRIC KEY asym_key_name
}
| WITHOUT LOGIN
]
[ WITH DEFAULT_SCHEMA = schema_name ]
November 15, 2011 at 4:18 am
A user without login..go db-->security-->right click users--->User's properties is showing without login...
A new user always created with Login name.
Thanks
November 15, 2011 at 4:25 am
USE AdventureWorks2008R2 ;
CREATE USER CustomApp WITHOUT LOGIN ;
November 15, 2011 at 4:54 am
If I want to create a login with insert view update and delete permission.. How Can I give these permissions to a login...
Thanks
November 15, 2011 at 5:01 am
November 15, 2011 at 6:00 am
@Eights - "A user without login..go db-->security-->right click users--->User's properties is showing without login..."
I followed it , but i am not able to select without login while creating a user for the 1st time .
Help !!!!
November 16, 2011 at 12:36 am
Use the command with "Without Login"
Thanks
November 17, 2011 at 11:32 am
I believe this is orphaned user, basically if you restore a production database to dev or staging, and the user only has access in prod it shows up in the dev as orphaned. Unless the user is mapped it is kind of useless.
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply