Custom Table Map Cannot Deploy

Compares and synchronizes SQL Server databases, backups and scripts.

Moderators: JonathanWatts, Chris Auckland, David Atkinson, eddie davis, Anu Deshpande, Michelle Taylor, alice.easey, james.billings, chengvoon.tong

Custom Table Map Cannot Deploy

Postby duhnbr » Tue Aug 06, 2013 6:10 pm

1. Set up test scenario:
Code: Select all
   create database ABC;
   go
   use ABC
   go
   create schema abc;
   go
   create table ABC.abc.MyTable(i int, j int);
   go
   create database XYZ;
   go
   use XYZ
   go
   create schema xyz;
   go
   create table XYZ.xyz.MyTable(i int);
   go
2. Open SQL Compare 10.4.8.87 GUI
3. Compare database ABC with XYZ
4. -->Edit Project-->Table Mapping: Map ABC.abc.MyTable to XYZ.xyz.MyTable
5. -->Compare Now
6. -->Select MyTable for deployment
7. -->Deployment Wizard (ABC-->XYZ)
8. EXPECTED (CORRECT) RESULT:
Code: Select all
ALTER TABLE [xyz].[MyTable] ADD[j] [int] NULL

ACTUAL (INCORRECT) RESULT:
Code: Select all
ALTER TABLE [abc].[MyTable] ADD[j] [int] NULL
MCTSQL
duhnbr
 
Posts: 10
Joined: Fri Mar 10, 2006 3:42 pm
Location: Earth

Postby Manfred.Castro » Thu Aug 08, 2013 8:56 pm

I believe you need to map the schemas in owner mapping.
In my attempts to reproduce your issue, once I mapped the abc schema to the xyz schema.
The I received the expected result.
http://documentation.red-gate.com/displ ... ing+owners
Manfred Castro
Product Support
Red Gate Software
Manfred.Castro
 
Posts: 209
Joined: Mon Apr 23, 2012 2:49 pm


Return to SQL Compare 10

Who is online

Users browsing this forum: No registered users and 0 guests