Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create new user 4

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
How do I create a new user within a database?

When I try saving the new user I'm trying to add I get the following:

Error 15007: The login <new user login> does not exist.

TIA
 
Create the login. Here's how.

Open Enterprise Manager
Drill down to server
click on Security
Click on Logins
Right Click Logins
Click New Login

Give it a name.
Got to the 'Database Access' tab and select the database that the login in permitted for.

Click OK


-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
First, create the Login (under the Security folder in Enterprise Manager). Then you can add the user to a database.

John
 
I've been able to add new users to databases if they are a part of a Windows Group that's been mapped to a SQL login. The easiest way to check who is on the groups you have mapped to SQL Server is to open a command window and, at the prompt, type:

net group <groupName> /domain

Just insert your group where it says <groupName> and type the rest as it is. It'll give you a list of the users in that group and you never have to worry about asking the network people who is a member of what group.

Catadmin

Catadmin - MCDBA, MCSA
"The only stupid question is the one you *didn't* ask.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top