Create User

  • 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]

  • After you execute the script, try refreshing the logins node in the display.

    -Luke.

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • Tried that and tried refreshing the db. Still no luck.

  • 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

    To help us help you read this[/url]For better help with performance problems please read this[/url]

  • 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