Solved

SQL Server error: 18452

Posted on 2008-10-13
4
1,391 Views
Last Modified: 2012-08-14
Connection failed:
SQLState; '28000'
SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

This is the error I am getting on a fresh install of Windows XP Pro. It works on other installs of XP Pro but will not work on this one. Anything would be a great help.
0
Comment
Question by:ahmad1467
  • 2
  • 2
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22704533
this error means that sql server is allowed only windows authentication, but the current connected windows user does not HAVE permissions to login to that sql server.
0
 

Author Comment

by:ahmad1467
ID: 22704687
I gave that user the same permissions on that server that I have. I can connect to the database  but that user cannot. Could there be a setting on the local machine that is blocking the login?
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 22705787
as I said: please check if the server is configured to allow only windows authentication (which I presume).
then, in the sql server logins, check if there is a login referring to the windows login (or a windows group the windows login is member of)...
0
 

Author Closing Comment

by:ahmad1467
ID: 31406286
Come to find out the database is on another server then the one running SQL. Thank you
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now