Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 406 Vote(s) - 3.53 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL Server 2008 can't login with newly created user

#1
I'm using using Windows Vista and I'm having trouble logging in with a newly created user.


1. I open SQL Server Management Studio.
2. I create a new Login by right-clicking on Security->Logins.
Check: SQL Server Authentication
Login name: tester
Password: test
Click OK
3. I added this user to User Mapping to my database of choice.
4. Click File -> Connect Object Explorer, select SQL Server Authentication and enter tester/test and click Connect.

I get an error:

Login failed for user 'tester'. (Microsoft SQL Server, Error: 18456"
with Severity = 14 and State = 1.

What causes this error and how do I login with my user?

Reply

#2
You'll likely need to check the SQL Server error logs to determine the *actual state* (it's not reported to the client for security reasons.) See [here][1] for details.


[1]:

[To see links please register here]

Reply

#3
SQL Server was not configured to allow mixed authentication.

Here are steps to fix:

1. Right-click on SQL Server instance at root of Object Explorer, click on Properties
2. Select Security from the left pane.
3. Select the SQL Server and Windows Authentication mode radio button, and click OK.

![enter image description here][1]

4. Right-click on the SQL Server instance, select Restart (alternatively, open up Services and restart the SQL Server service).

This is also incredibly helpful for IBM Connections users, my wizards were not able to connect until I fxed this setting.


[1]:
Reply

#4
If you haven't restarted your SQL database Server after you make login changes, then make sure you do that. `Start`->`Programs`->`Microsoft SQL Server` -> `Configuration tools` -> `SQL Server configuration manager` -> `Restart Server`.

It looks like you only added the user to the server. You need to add them to the database too. Either open the database/Security/User/Add New User or open the server/Security/Logins/Properties/User Mapping.
Reply

#5
Login to Server as Admin

Go To Security > Logins > New Login

Step 1:

Login Name : SomeName

Step 2:

Select SQL Server / Windows Authentication.

More Info on,

[To see links please register here]


Choose Default DB and Language of your choice

Click OK

Try to connect with the New User Credentials, It will prompt you to change the password. Change and login

OR

Try with query :

USE [master] -- Default DB
GO

CREATE LOGIN [Username] WITH PASSWORD=N'123456', DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=ON, CHECK_POLICY=ON
GO

--123456 is the Password And Username is Login User
ALTER LOGIN [Username] enable -- Enable or to Disable User
GO
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through