No search results
IanC
Posts: 6 New member
I'm currently using SQL Search 2.4.0.1203 in SSMS 2016 & it's failing to return any results for our main development database, but appears to be working correctly for other databases on the same server (including one which is essentially a clone of our development db).
Any ideas what could cause it to not work against a particular db?
Thanks,
Ian
Any ideas what could cause it to not work against a particular db?
Thanks,
Ian
Tagged:
Comments
My guess is if you connect to two servers that have a database with the same name it causes it to freak out and error.
Getting similar results to rkretsch17. Have 2 database connections open in SSMS 2014 and it is not searching on the second connection. Works on the first connection. Disconnected the first connection. Closed and reopened SQL Search then it works.
With 2 servers that have very similar Databases (our dev and prod) SQL Search 2.4 is failing on the second connection.
On 2 servers with no overlaping databases, you can switch to either server and it works as expected.
I miss being able to use this.
Adding another server to object explorer suddenly made it start returning results.
v2.4.0.1203.
It looks like the problem started after I linked this database to svn source control. Not 100% sure but that's the only thing special about this database. After unlinking the database from source control, the problem persisted.
I get the same issue, no search results when I'm connected to multiple servers with two SSMS instances open under different users. If I'm just connected to one server in one SSMS instance then I get correct search results.
SSMS: 2016 (13.0.16106.4)
SQL Search: 2.4.0.1203
Same here. Can confirm that multiple server connections seem to trigger this. My workaround is closing the SQL Search window and re-opening it, and then it will have search results.
SQL Search 2.4.0.1203
SSMS 13.0.16106.4
Steve
So sorry to hear about these issues and for the delay!
If index files get corrupted, it can often help to close SSMS and then delete the %LocalAppData%\Red Gate\SQLSearch 2\Indexes folder, though it sounds like this hasn't helped in most cases.
I'm actually not able to immediately reproduce this so I'm going to raise this with our developers. I will post here once I have more detail.
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
We've gotten a report that rebooting the machine has resolved this issue in one case, so if deleting the index files does not help, this may be worth a try.
Should it still fail though, can you all please check your most recent log file in %LocalAppData%\Red Gate\Logs\SQLSearch 2 for any errors regarding indexing your database(s) and post them here?
Thank you!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
21 Apr 2017 10:07:08.451 [27] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while re-indexing Jobs on VXVSSMSCSQL06C:
Exception: The SELECT permission was denied on the object 'sysjobs', database 'msdb', schema 'dbo'.
21 Apr 2017 10:07:09.161 [81] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while re-indexing Jobs on VXVSSMSCSQL06C:
Exception: The SELECT permission was denied on the object 'sysjobs', database 'msdb', schema 'dbo'.
It looks like the error is "database is locked" in your case.
The cause of this error is still under investigation (SDI-716), but the following usually works around this:
1) Open SSMS but do not connect to a Database Engine.
2) Open SQL Search2
3) Connect to your database engine
4) Use SQL Search
Can you please give this a try?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
We work in a managed services environment so we can't get additional server rights to database msdb. Jobs are not allowed in our environment.
Log file when SQL Search works:
"Exception: The SELECT permission was denied on the object 'sysjobs', database 'msdb', schema 'dbo'." followed by "ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxx' is not indexed".
Log files when SQL Search doesn't work filled with this:
Exception: database is locked
database is locked
16 Jun 2017 11:14:10.400 [52] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'MyDBName on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.402 [52] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.401 [8] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'MyDBName on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.407 [8] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.665 [63] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while re-indexing MyDBName on dbxxxxxx:
Exception: database is locked
database is locked
16 Jun 2017 11:14:10.666 [49] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'MyDBName on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.667 [49] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.667 [6] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'MyDBName on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.670 [6] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.932 [65] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while re-indexing MyDBName on dbxxxxxx:
Exception: database is locked
database is locked
16 Jun 2017 11:14:10.935 [47] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'MyDBName on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.936 [47] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.935 [54] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'MyDBName on dbxxxxxx' is not indexed
16 Jun 2017 11:14:10.964 [7] ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxxx' is not indexed
16 Jun 2017 11:14:35.258 [1] INFO RedGate.SQLSearch.UsageReporting.ApplicationUsageHelper - The reporting of product and feature usage information did not complete in the allotted time during shutdown (this will not affect normal operation of the software)
Regards and hope this helps,
Greg
Sorry to hear that you're running into this as well!
If Jobs access will not be allowed, you can safely ignore the error, "Exception: The SELECT permission was denied on the object 'sysjobs', database 'msdb', schema 'dbo'." followed by "ERROR RedGate.SQLSearch.Addin.Tab.Controller - Search failed: 'Jobs on dbxxxxx' is not indexed".
Regarding the "database is locked" issue (SDI-716), I am still looking into what causes this and for other possible workarounds, as I realize it's not ideal to have to do the current workaround on every SSMS restart!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
I have the same problem here: Win10PRo, SSMS 17.1 (14.0.17119.) SQL Search 2.4.0.1203, SQL Prompt 8.0.1.1383
Sometimes Search Fails with one database. There are no results.
I can reach the server only over vpn on a 16 Mbit line. Latencetime for a ping is over 50 MS, sometimes mor than 100.
Even Reindex doesn't help.
I got following error in Logfiles:
30 Jun 2017 07:43:29.673 [53] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while re-indexing xxxx on yyyy:
Exception: constraint failed
UNIQUE constraint failed: sysobjects.id
Only closing of SSMS and reopening helps sometimes.
This sucks ...
Jürgen
We are a team of devs and all of us experience this problem on a daily basis.
Error is "database is locked" followed by a "Search failed: 'DBNAME on SERVER' is not indexed"
Basically, start SSMS -> Cancel out of Connect Dialog -> Open Redgate Search -> With Redgate Search Open, THEN Connect