Unable to connect to {database name} in order to perform shadow clean
Jim_Horn
Posts: 4 New member
Hi All
Using VS Professional 2017/Git I've created a new branch, and am trying to connect to a database solution file and build it on my local server, and when I do I get this unhelpful error message:
Looking in the Error List tab it shows this warning (not an error)
Is anyone familiar with this error?
Thanks.
Jim
Using VS Professional 2017/Git I've created a new branch, and am trying to connect to a database solution file and build it on my local server, and when I do I get this unhelpful error message:
Looking in the Error List tab it shows this warning (not an error)
Severity Code Description Project File Line Suppression State
Warning Unable to connect to {database name} in order to perform shadow clean: {repeat of above image text}.
Is anyone familiar with this error?
Thanks.
Jim
Tagged:
Answers
So sorry to hear you're running into an issue!
I found a few older tickets with a similar error and the problem was usually that the connection to the shadow database was failing. Can you please check the shadow database connection from your usersettings file https://documentation.red-gate.com/sca/reference/sql-change-automation-project-user-settings to confirm it's valid?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
Also most other solutions load fine, which would imply that it's something specific to the one I'm trying to load.
My apologies for that, this would have been the more appropriate link to send: https://documentation.red-gate.com/sca/developing-databases/concepts/shadow-database
It would be in the '<YourProjectName>.sqlproj.user' file
Do you have this file and is the ShadowConnectionString is correct? If you don't have the file, can you please create it to specify the ShadowConnectionString?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
Thanks for confirming!
Hm, it's odd. I mentioned that the issue appears to be with connecting to the shadow database, but if there is no ShadowConnectionString defined, it should be trying to connect to the same server where the development DB is.
Assuming that clicking "Change connection" and testing connection to the development db still works, can you please try pre-creating a shadow db and specifying it in the .sqlproj.user file? (by manually adding the <ShadowConnectionString> property
https://documentation.red-gate.com/sca/developing-databases/concepts/shadow-database)
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?