Owner mapping - one to many
PaulOckenden
Posts: 8 New member
I'm trying to investigate whether SQL Compare will work for us.
Database A has loads of tables, half owned by [dbo] and half by [userA]. Database B is a mirror, but all of the tables are owned by [dbo].
I can't seem to find a way to compare these two database (ignoring table ownership) using SQL Compare. The owner mapping seems to be one to one, but I guess I need one to many.
Is that possible? I also looked for an 'ignore ownership' option which might also have worked, but couldn't find one.
Thanks for any help you might be able to give,
Paul.
Database A has loads of tables, half owned by [dbo] and half by [userA]. Database B is a mirror, but all of the tables are owned by [dbo].
I can't seem to find a way to compare these two database (ignoring table ownership) using SQL Compare. The owner mapping seems to be one to one, but I guess I need one to many.
Is that possible? I also looked for an 'ignore ownership' option which might also have worked, but couldn't find one.
Thanks for any help you might be able to give,
Paul.
Comments
Cheers,
Redgate Software
I don't understand why I can't do it in owner mapping.
Redgate Software
I think it should allow you to select more than one owner from the source database.
e.g.
[dbo] |
[UserA] |
| [dbo]
I should be able to select all three rows, and hit map.
This would then create TWO mappings in the table above:
[dbo] -> [dbo]
[UserA] -> [dbo]
Does that make sense?
(The other option would be to go in and tinker with the saved project definition files prior to deployment - then you wouldn't have to build a UI, but not sure whether this is feasible.)
Thanks,
P.
The difficult part here is that Compare will behave unpredictably if there are tables with the same name in both schemas. For example, the source table might have a [dbo].[tableA] and a [UserA].[tableA] - we're not sure how Compare should behave in that case. Any ideas?
Redgate Software
So for the tables on the left hand side one would match and one would fail during comparison.
I wonder whether another way to tackle this would be to have an 'ignore schema' in the options? But with a note saying that option can only be used when table names are unique between schemas. perhaps that might be easier from a UI point of view, and also easier for people to understand.
P.
I think this might work, although we should think carefully before adding another option to the UI to avoid worsening the task of verifying that your options are set correctly.
We'll soon be deciding what features to work on after we release Compare 12 to the default channel, so it's really useful to know what kinds of features should be on our list.
Redgate Software
I always work on the theory that if one customer (or potential customer) asks for something, there will usually be a load more that are too shy to ask!
P.
Redgate Software