Options

Mapping columns on table comparison

paulo_morgadopaulo_morgado Posts: 97 Silver 2
edited October 17, 2011 5:34PM in SQL Compare Previous Versions
Is there a way to map columns in table comparisons?

Let's say that in database A I have column Stuff int in table T and in database B I have column BigStuff bigint.

I want o generate a script that T.Stuff int into T.BigStuff bigint and preserve data.

Is this possible?
Paulo Morgado
Portugal
Web Site
Weblog
Twitter

Comments

  • Options
    Hi Paulo,

    This isn't possible using SQL Compare although there is an existing feature request in place to allow column level mappings and more granular control over objects as a whole which will be reviewed for version 9 of the tool due out later this year.

    In the meantime, you may wish to have a look at SQL Refactor as this includes a feature called "Smart Rename", which allows you to rename an object / column and take care of all the relevant dependencies of that object / column accordingly as well as preserve data that you have in there.

    HTH!

    Pete
    Peter Peart
    Red Gate Software Ltd
    +44 (0)870 160 0037 ext. 8569
    1 866 RED GATE ext. 8569
  • Options
    paulo_morgadopaulo_morgado Posts: 97 Silver 2
    Thanks. I was able to work around the issue using SQL Refactor.
    Paulo Morgado
    Portugal
    Web Site
    Weblog
    Twitter
  • Options
    Table mapping is now possible in SQL Compare 9.5

    http://www.red-gate.com/MessageBoard/vi ... hp?t=14113

    Let us know if this is what you expected.

    David Atkinson
    Red Gate Software
    David Atkinson
    Product Manager
    Redgate Software
Sign In or Register to comment.