Red Gate forums :: View topic - Custom Table Map Cannot Deploy
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

Custom Table Map Cannot Deploy

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
duhnbr



Joined: 10 Mar 2006
Posts: 10
Location: Earth

PostPosted: Tue Aug 06, 2013 6:10 pm    Post subject: Custom Table Map Cannot Deploy Reply with quote

1. Set up test scenario:
Code:
   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:
ALTER TABLE [xyz].[MyTable] ADD[j] [int] NULL

ACTUAL (INCORRECT) RESULT:
Code:
ALTER TABLE [abc].[MyTable] ADD[j] [int] NULL

_________________
SQL PROCtologist
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 205

PostPosted: Thu Aug 08, 2013 8:56 pm    Post subject: Reply with quote

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/display/SC104/Mapping+owners
_________________
Manfred Castro
Product Support
Red Gate Software
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group