Creating mulitple test databases -- can SQL Compare help?
stephen_lee_moore
Posts: 4
Hello. We have multiple databases that we use together. For example, we have a payroll database that comes from a vendor, and a custom database with our custom code. We have stored procs in the custom DB that reference objects in both databases, so we fully qualify the object names with database name and schema. In other words, a stored proc might join payroll.dbo.table with custom.dbo.table.
We would like to create a test environment in the same instance for both databases, so we would want to create testpayroll and testcustom. And the stored procs would need to reference testpayroll.dbo.table and testcustom.dbo.table at the same time.
I didn't know if SQL Compare (or another redgate tool) could both propagate objects from one db to another and then change the fully qualified references inside stored procs, functions, views, etc. I don't think it would be a problem if all of the relevant objects were in the same DB, as we could just leave off the db qualifier.
The only other option I can think of is a separate instance, that way the db names can stay the same.
Any help is appreciated!
We would like to create a test environment in the same instance for both databases, so we would want to create testpayroll and testcustom. And the stored procs would need to reference testpayroll.dbo.table and testcustom.dbo.table at the same time.
I didn't know if SQL Compare (or another redgate tool) could both propagate objects from one db to another and then change the fully qualified references inside stored procs, functions, views, etc. I don't think it would be a problem if all of the relevant objects were in the same DB, as we could just leave off the db qualifier.
The only other option I can think of is a separate instance, that way the db names can stay the same.
Any help is appreciated!
Comments
that way SPs won't need to be changed
DBA, MCITP
Redgate Software