Delete common objects from one database
On a test server, I copied certain functions, procs, tables and views from a big database to a smaller new app database. Now I'd like to remove most (but not all) of those objects from the big database. I run compare and get a nice list of everything in common. Can I create a script in SQL Compare to delete selected common objects from the larger database that have been recreated in the new app database?
thx
Best Answer
-
MichaelFurey Posts: 2 New member
Thanks -- good idea. Wish I had done that approach. Or copied the whole database into a new one and deleted the objects I didn't need using Object Exporer Details to delete a bunch at a time.
You can use SQL Compare to delete certain objects in one but not the other. Just not certain objects that are in both.
I ended up doing it in SQL.
Answers
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
Overall glad you managed to resolve your scenario with your approach!
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?