Stop SQL Server from trying to login to all databases on the instance
jluebbers
Posts: 4 New member
in SQL Search
SQL Prompt attempts to login to all databases on an instance - even databases the current user has no access to. This pollutes the SQL Server logs with errors like this:
Is there a way to make SQL Search not do this, or at least allow the list of databases it attempts to search be configurable?
This has been requested before in a number of places over the last few years but still is an issue in the current version.
Major KNOWN Issue --- Stop requiring product to login to all databases on server – Customer Feedback for Redgate (uservoice.com)
SQL Search causing Login failures — Redgate forums (red-gate.com)
restrict/hide database — Redgate forums (red-gate.com)
Date 1/11/2022 1:38:35 AM
Log SQL Server (Current - 1/11/2022 2:35:00 AM)
Source Logon
Message
Login failed for user 'DOMAIN\someuser'. Reason: Failed to open the explicitly specified database 'MyDatabase'. [CLIENT: 1.2.3.4]
Is there a way to make SQL Search not do this, or at least allow the list of databases it attempts to search be configurable?
This has been requested before in a number of places over the last few years but still is an issue in the current version.
Major KNOWN Issue --- Stop requiring product to login to all databases on server – Customer Feedback for Redgate (uservoice.com)
SQL Search causing Login failures — Redgate forums (red-gate.com)
restrict/hide database — Redgate forums (red-gate.com)
Tagged:
Answers
Thank you for your forum post.
Yes this is a known problem and one that still exists in SQL Search.
If you have not already done so, please may you vote and comment on the UserVoice forum post:
Major KNOWN Issue --- Stop requiring product to login to all databases on server – Customer Feedback for Redgate (uservoice.com)
Unfortunately there is not any option in SQL Search to prevent this from occurring or configure a list of databases for the tool to connect.
I will feedback your comments to the Development Team.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
I have some further information you maybe pleased to hear.
The Development Team responsible for SQL Search are in the process of adding a fix for this situation. I do not have an accurate ETA but the team plan to release this fix sometime next week.
I will update this post, when I have information that the new version has become available
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
To answer your question:
According to the SQL Search V3.6.1 releases notes does include fix for the problem, where it stops the attempted indexing of databases that the current user has no access to.
Do you still experience the reported problem?
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com