Re: OK - I'm stupid....How do you create a user?
- From: "Gail Erickson [MS]" <gaile@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Nov 2006 16:33:20 -0800
Login failed for user stoelle
You're almost there. Because the login you created is a local account and
not a Windows login, you'll need to change the authentication mode SQL
Server uses from "Windows Authentication" to "SQL Server and Windows
Authentication". This topic describes how to do this:
http://msdn2.microsoft.com/en-us/library/ms188670.aspx.
By default SQL Server uses Windows Authentication and it is considered a
best practice recommendation because it is more secure. In addition, you
should always use strong passwords for your logins. For more information
about authentication modes and strong passwords, see this topic:
http://msdn2.microsoft.com/en-us/library/ms144284.aspx.
I'm assuming you're learning/experimenting, which is great. When you're
ready to set up a production system with real users, you should use only
Windows authentication mode if at all possible.
--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights
Download the latest version of Books Online from
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
"UJ" <fred@xxxxxxxxxxx> wrote in message
news:uS9g7bbCHHA.468@xxxxxxxxxxxxxxxxxxxxxxx
Login failed for user stoelle
"Gail Erickson [MS]" <gaile@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23ptAjBaCHHA.4992@xxxxxxxxxxxxxxxxxxxxxxx
The command completes successfully. I can see the user and the login.
But I can't login as the user. What else do I need to do?
What error message do you get?
--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no
rights
Download the latest version of Books Online from
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
"UJ" <fred@xxxxxxxxxxx> wrote in message
news:%23N7xadZCHHA.1012@xxxxxxxxxxxxxxxxxxxxxxx
OK. I'm doing something wrong. I execute the following statements:
use mktg
go
create login stoelle with password = 'sharon'
go
create user stoelle for login stoelle
go
grant select on referrals to stoelle
go
grant delete on referrals to stoelle
go
grant update on referrals to stoelle
go
grant insert on referrals to stoelle
go
The command completes successfully. I can see the user and the login.
But I can't login as the user. What else do I need to do?
TIA - Jeff.
"Gail Erickson [MS]" <gaile@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:OslCL5RCHHA.144@xxxxxxxxxxxxxxxxxxxxxxx
You might find the topics under this tutorial useful.
http://msdn2.microsoft.com/en-us/library/ms365345.aspx
--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no
rights
Download the latest version of Books Online from
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
"UJ" <fred@xxxxxxxxxxx> wrote in message
news:OsHzQQPCHHA.3380@xxxxxxxxxxxxxxxxxxxxxxx
OK - I'm stupid. How do you create a user? I've gone through the steps
of creating the user for the server, then create the user for the db
but the user cannot login.
Can somebody point me towards a web page/article that will tell me how
to do this?
TIA - Jeff.
.
- References:
- OK - I'm stupid....How do you create a user?
- From: UJ
- Re: OK - I'm stupid....How do you create a user?
- From: Gail Erickson [MS]
- Re: OK - I'm stupid....How do you create a user?
- From: UJ
- Re: OK - I'm stupid....How do you create a user?
- From: Gail Erickson [MS]
- Re: OK - I'm stupid....How do you create a user?
- From: UJ
- OK - I'm stupid....How do you create a user?
- Prev by Date: Re: OK - I'm stupid....How do you create a user?
- Next by Date: i have two inserts and one delete i want in one transaction, is there any issue with this tsql strategy: http://rafb.net/paste/results/uY2KYP16.html
- Previous by thread: Re: OK - I'm stupid....How do you create a user?
- Next by thread: Re: how to decrypt an encrypted stored proc in 2005
- Index(es):
Relevant Pages
|
|