SQL History not showing anything
trek_madone
Posts: 7 New member
Hello,
SQL History has not been working for me for few months now. Every time I click SQL History, nothing is showing in Recent queries.
I ignored it because I thought it was just a bug that will be fixed in the next version, but I already received about 5 updates since and still not working. I have the version 10.14.4.4865.
I already tried the following:
1. Re-installed SQL Prompt
2. Deleted the folder AppData\Local\Red Gate and re-installed SQL Prompt
3. Re-installed SSMS and SQL Prompt
4. Deleted the file SqlHistory.db and I can see that it recreates the file when opening SSMS. However, queries are still not being saved in history.
Is anyone experiencing the same?
SQL History has not been working for me for few months now. Every time I click SQL History, nothing is showing in Recent queries.
I ignored it because I thought it was just a bug that will be fixed in the next version, but I already received about 5 updates since and still not working. I have the version 10.14.4.4865.
I already tried the following:
1. Re-installed SQL Prompt
2. Deleted the folder AppData\Local\Red Gate and re-installed SQL Prompt
3. Re-installed SSMS and SQL Prompt
4. Deleted the file SqlHistory.db and I can see that it recreates the file when opening SSMS. However, queries are still not being saved in history.
Is anyone experiencing the same?
Tagged:
Answers
Thanks for reaching out to us, I'm sorry you're seeing this issue with SQL Prompt!
That is very strange that you are seeing absolutely nothing in SQL History, especially after the steps you have followed to try to resolve the issue.
Would you mind confirming what authentication method do you use to connect to your database(s)?
Also, does performing an advanced search in SQL History (with Object type and Search period set to everything) reveal any queries your not seeing in the main view?
Dan Jary | Redgate Software
Have you visited our Help Center?
Thanks for your response.
I am using Windows Authentication.
Advanced Search also shows nothing.
If I uncheck the state Open, I get few results, but I can't open them either, throws an error.
1. Re-installed SQL Prompt
2. Deleted the folder AppData\Local\Red Gate and re-installed SQL Prompt
3. Re-installed SSMS and SQL Prompt
4. Deleted the file SqlHistory.db and I can see that it recreates the file when opening SSMS. However, queries are still not being saved in history.
Thank you for your reply on this. My apology for the delay in coming back to you!
We have had a couple of other customers (in addition to @Riz also) that are reporting some issues with SQL History. Would you mind confirming what version of SSMS you have installed?
Also, regarding the error you are also seeing, could you enable Verbose Logging (https://documentation.red-gate.com/sp10/troubleshooting/finding-the-sql-prompt-log-files), recreating the error and providing the resulting log file? If you'd rather provide this file privately I'd be happy to reach out to you via the ticket we have logged for this issue.
Dan Jary | Redgate Software
Have you visited our Help Center?
I have both SSMS 18.12.1 and 19.2. I recently installed 19.2 to try if it's working on this version but it's same behavior.
Sorry but I cannot send you log files because it's against our company policy. However, I have this error and it's consistent with all the logs:
~~~~~~~~~~~~~~~~~~~~~
Many thanks for your update on this.
Please can you confirm the Newston.Json.dll version in the following file patch
C:\Program Files (x86)\Red Gate\SQL Prompt 10
.The reason I ask is that we have seen it on a few occasions before that this issue is caused by the version of Newston.Json.dll file contained in
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Newtonsoft.Json
. Essentially, the version contained in this file path is typically older than 13.0.1 and is overriding the newer version that is contained in the Redgate folder (C:\Program Files (x86)\Red Gate\SQL Prompt 10), which was updated in a recent release of SQL Prompt.If this is the case for you, the only way to get around this is to manually replace the Newtonsoft.Json file in the above file path (as the SQL Prompt installation does not modify this folder).
Dan Jary | Redgate Software
Have you visited our Help Center?
Any update on this?
My sincere apology for the delay in replying to you on this!
Thank you for confirming on the file version, clearly this isn't the issue.
Would it be at all possible for you to provide a copy of your SQLHistory.db and sqlhistory-search.json files? If you'd rather not provide these via this forum thread I can reach out to you directly from the support ticket we have logged for this issue.
Dan Jary | Redgate Software
Have you visited our Help Center?
Unfortunately, I can't provide you the SQLHistory.db. It's against our company policy. I think the log I provided above should be enough for your developers to start looking into this issue.
Error deserializing operation json: Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object ......
I think this is now a known issue but RedGate is ignoring it.
Any updates on this?
The last line of the SSMS info pane (not visible due to scrollbar) is "Operating System" 10.0.18362