Show History Very Slow
skuhn
Posts: 27 Bronze 3
I have the latest version of SQL Source Control, 3.0, (in SSMS 2008 R2) linked to SQL Server 2005 databases and a SourceGear Vault 5.1.1 repository. The SQL Server instance in question has 6 databases linked, however I am only opening one database that has 4 tables and 1 stored procedure. When I right-click the database and choose Show History, the History dialog comes up but sits there with a message that says Waiting for other operations to complete. It's not clear what those other operations are but after 10 minutes I give up. After that I am unable to close SSMS as it indicates that there are processes running.
Could this be Sql Source Control checking for differences in all of the linked databases in the background? (The swirl is not showing on the other databases that I have not opened.)
Could this be Sql Source Control checking for differences in all of the linked databases in the background? (The swirl is not showing on the other databases that I have not opened.)
Comments
Does the problem affect all users/databases? Or does it only seem to occur on your own machine? Have you tried unlinking and re-linking the database to see if it helps at all?
Redgate Software
Now, after every commit changes, I have to unlink and relink to clear the issue.
I'll have to have another member of the team try to commit changes to see if similar issues are observed.
Redgate Software
On the occasions where I get the second error, I have to unlink and relink the database to clear up the issue; which returns again once I commit changes.
Will provide results from other team members shortly.
Next time the error occurs, can you click the "send error report" link at the bottom, and ensure you enter your email addres? This may tell us a little more about what's happening.
Redgate Software
Thanks for your guidance James; it helped me reach resolution.
Redgate Software
As a quick workaround, can you check out a copy of what's in the Vault repository to a local folder on the PC, then try SQL Compare against that, using the "Script Folder" option? If that works, then it suggests some difficulty with it talking to Vault, but if the problem persists, then it's more likely to be something strange in the files in your repository.
Redgate Software
Additionally, if we simply do a compare to an "unchanged" database against the "head" revision of a branch in Vault, SQL Compare doesn't seem to pick up the need to use a migration script created through SQL Source Control, though we have created one. What, exactly, would cause SQL Compare to recognize that a migration script must be used and where to find it?
From the Vault client I have cleared the local cache and pulled all files from the server.
Everything else (that I've tried) in sql source control works really smoothly, however, I get the "Waiting for other operations to complete" when right-clicking a table, a view or any other source controlled object from the SMSS Object Explorer and select Show History
From the Vault client I have no trouble viewing history and differences.
any suggestions?
When I give up the history dialog I also have the problem of SSMS process being stuck in execution. I have to kill the process from Task Manager and restart SSMS.
After killing the task and restarting, I went to do Show History on the same database again, this time it seems to be working its way through. It is still a slow process to bring up the history (especially "4/4 calculating changes", well over 20 minutes and still processing as I write this). But it was the very first SSC-related operation I did after restarting SSMS. It seems if you work for a while with the tool, at some point the Show History just gets stuck and stops working. I wish I could be more specific as to the circumstances or operations that can lead to this state, but for now this is all I have. I'm keeping an eye open on any piece of information worth sharing and will report back if anything comes up.
Thanks