July 28, 2009 at 10:24 am
When I setup a user, with the script below, they do not show up in the Logins. This happens each time. The only way I can get the user to show up is to manually start to create the user and then it will tell me the user already exists and then poof! the user shows up at the bottom of the Logins. Is there a trick to this?
CREATE USER [company\jdoe] FOR LOGIN [Company\jdoe]
July 28, 2009 at 11:03 am
July 28, 2009 at 11:14 am
Tried that and tried refreshing the db. Still no luck.
July 28, 2009 at 12:24 pm
Perhaps you're not actually creating the login you think that you are? You need to create the login before you create the user For the login...
Per BOL's Create User section
CREATE LOGIN WanidaBenshoof
WITH PASSWORD = '8fdKJl3$nlNv3049jsKK';
USE AdventureWorks;
CREATE USER Wanida FOR LOGIN WanidaBenshoof
WITH DEFAULT_SCHEMA = Marketing;
GO
July 28, 2009 at 2:22 pm
That worked. Thank you.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply