Recurring Event 18456 in event log, Login Failed for user ''

Les Ferguson 6 Reputation points
2022-09-18T22:38:15.123+00:00

Is there a way to trace what process is attempting to connect to my local development database?
I see regular bursts of about 30 attempts in a second, happening every minute. The log entry is Event 18456, MSSQLSERVER

Login failed for user ''. Reason: An attempt to login using SQL authentication failed. Server is configured for Integrated authentication only. [CLIENT: <local machine>]

I can't help feeling that something is doing a whole lot of unnecessary work on my laptop, and would like to identify and prevent this.
Does Visual Studio 2022 attempt to connect to my local database, even tho I am not using any database connections with it?
How do I trace the cause for this repeating event?

SQL Server | Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. PandaPan-MSFT 1,931 Reputation points
    2022-09-19T02:21:07.12+00:00

    Hi @Les Ferguson ,
    Pls follow the steps:
    Check the "detials" choice of Task Manager:
    242381-image.png

    Find SQL Server and check its PID
    242342-image.png

    Use the order netstat -ano|find "xxxx" to see:
    242352-image.png

    Cuz I don't have any connections at present so there is nothing to be shown, let's pretend there is a program being connected to my SQL and its TCP is 192.168.6.189:3758

    Then you can use the following order netstat -ano |find "6.189"

    And then you can get the program's ip that is connecting to your SQL.

    Finally you can use the IP you got and go back to Task Manager to see what process it is.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment"


  2. Erland Sommarskog 121.9K Reputation points MVP Volunteer Moderator
    2022-09-19T22:03:33.54+00:00

    I guess that it should be possible to use Process Monitor from sysinternals.com to track down the connections. I am not exactly sure how you would do it, though. (Never had the need myself). But the error message suggest that this is access over shared memory.

    0 comments No comments

  3. PandaPan-MSFT 1,931 Reputation points
    2022-09-20T05:41:42.577+00:00

    Hi @Les Ferguson ,
    We have not received a response from you. Did the reply could help you? If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. By doing so, it will benefit all community members who are having this similar issue. Your contribution is highly appreciated.

    0 comments No comments

  4. Les Ferguson 6 Reputation points
    2023-03-31T01:23:22.26+00:00

    Never did find an answer. Cannot trace the logon attempts to a process. Still get the event log entry every minute.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.