SQL Search not returning any results
bboppel
Posts: 5 Bronze 2
After installing SSMS 2017 (v17.9), I'm not getting any results back on any searches. Coincidentally, the search stopped working in SSMS 2014 as well.
From the log file:
From the log file:
15 Mar 2019 08:51:14.389 [88] ERROR ServerObjectIndexer - Exception while indexing server:
System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_open_interop' in DLL 'SQLite.Interop.dll'.
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_open_interop(Byte[] utf8Filename, Byte[] vfsName, SQLiteOpenFlagsEnum flags, Int32 extFuncs, IntPtr& db)
at System.Data.SQLite.SQLite3.Open(String strFilename, String vfsName, SQLiteConnectionFlags connectionFlags, SQLiteOpenFlagsEnum openFlags, Int32 maxPoolSize, Boolean usePool)
at System.Data.SQLite.SQLiteConnection.Open()
at RedGate.SQLSearch.Indexing.SQLite.SqliteDatabaseConnection.EnsureConnectionOpen()
at RedGate.SQLSearch.Indexing.SQLite.SqliteDatabaseConnection.CreateCommand()
at RedGate.SQLSearch.Indexing.SQLite.ServerObjectStorage.Initialise()
at RedGate.SQLSearch.Indexing.ServerObjectIndexer.Index()
Tagged:
Comments
I resolved it by replacing the System.Data.SQLite.dll in C:\ProgramData\Red Gate\SQL Search\Source with the older version (1.0.85.0, copied from SQL Prompt 9 folder, C:\Program Files (x86)\Red Gate\SQL Prompt 9).
It looks like it's likely due to the multiple versions of SQLite being used and the x64/x86 versions not being published appropriately for the new version (1.0.110.0)
BTW, this did not work when I replaced it with 1.0.109.0 - my guess it has to do with the changes to the library pre-loader introduced in 1.0.91.0.
I now know that this happens because SQL Prompt uses version 1.0.85.0 and Search uses 1.0.110.0, but tries to use the Prompt version of SQLite.Interop.DLL. So as long as both Prompt and Search use the same version, it will work fine.
Looks like an integration testing problem! Prompt and Search both work fine alone, but if you install both of them then Search breaks.
Thanks Vivan
La solucion consiste en copiar el archivo System.Data.SQLite.dll de la ruta "C:\Program Files (x86)\Red Gate\SQL Prompt 6" ( esta ruta es en la que tienen instalado el SQL Prompt) y pasarla a la ruta "C:\Program Files (x86)\Red Gate\SQL Search" ( esta ruta es en la que tienen instalado el SQL Search) y reinician los servicios del sql server o reinician la pc.
Infact, Vivan help it eliminated the log error concerning the System.data.SQlite.dll but all the same, indexing was too much fast and Sql Search was still not returning any result.
Eventually I looked for indexes files created by Sql Search while indexing each database, I found them inside C:\Users\yourusername\AppData\Local\Red Gate\SQLSearch 3\Indexes folder, I deleted them since they had an old "Date modified", I got back to Sql Search in SSMS and I pressed Reindex (Ctrl-Alt-D)
I observed that my indexes file were recreated and Sql Search finally worked.
Ettore