I have two development databases locally
Alpha
Beta_Dev
I have two production databases remotely
Alpha
Beta
I use SQL Compare to sync the schema of the two Alpha databases.
Sometimes, stored procedures in the Development version of Database Alpha
reference tables in Database Beta
, or in the local environment, Beta_Dev
.
For Example:
Select * from Beta_Dev.dbo.MyTable
This code will not work on the production server, because the Beta Database is called Beta
, rather than Beta_Dev
.
Is there a way, using SQL Compare, to have all SP's or Views be compared such that Beta_Dev (local) = Beta (remote)
?
Not only would the databases be uploaded in working order, but SQL Compare won't be tricked into thinking the SP's are different, when only Beta_Dev / Beta are different.