Re: New User error...
From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 03/25/04
- Next message: Hari: "Re: Recommended Procedure for Importing From Access Across LAN"
- Previous message: Ray at <%=sLocation%> [MVP]: "Re: Scripting data import by query"
- In reply to: Chris Marsh: "New User error..."
- Next in thread: Chris Marsh: "Re: New User error..."
- Reply: Chris Marsh: "Re: New User error..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 22:37:45 -0600
Before you add a user to a database, you need to first add the login. For
example:
--SQL authentication
EXEC sp_addlogin 'MyLogin', 'Mypassword'
USE MyDatabase
EXEC sp_adduser 'MyLogin'
--Windows authentication
EXEC sp_grantlogin 'MyDomain\Mylogin'
USE MyDatabase
EXEC sp_grantdbaccess 'MyDomain\Mylogin'
-- Hope this helps. Dan Guzman SQL Server MVP "Chris Marsh" <cmarsh@synergy-intl.com> wrote in message news:%2345isUhEEHA.3872@tk2msftngp13.phx.gbl... > I am getting error 15007 when trying to create a new user. Why? This is a > silly error, I know the user doesn't because I am trying to add them but > this is the error I get when trying to add any user to the database. What > the heck am I doing wrong? > > Thanks in advance! > > Chris > >
- Next message: Hari: "Re: Recommended Procedure for Importing From Access Across LAN"
- Previous message: Ray at <%=sLocation%> [MVP]: "Re: Scripting data import by query"
- In reply to: Chris Marsh: "New User error..."
- Next in thread: Chris Marsh: "Re: New User error..."
- Reply: Chris Marsh: "Re: New User error..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|