Database Change Management
Database Change Management
Home | Profile | Register | Active Topics | Active Polls | Members | Private Messages | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Support
 DB Ghost Support Forum
 synchronizing database schemas
 New Topic  New Poll New Poll
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jhuffman


3 Posts

Posted - 12/14/2005 :  13:11:38  Show Profile Send jhuffman a Private Message  Reply with Quote
When synchronizing database schemas, is there a way to control the order of the "ALTER TABLE/ADD COLUMN" statements in the generated script? I want the ordinal position of the columns in the target database to be the same as the source.

Mark Baekdal



86 Posts

Posted - 12/15/2005 :  04:56:44  Show Profile  Visit Mark Baekdal's Homepage Send Mark Baekdal a Private Message  Reply with Quote
There is an advanced option on one of the wizard screens (left hand side) where you can choose to have ordinal position checked in which case it will be catered for.




regards,
Mark Baekdal
http://www.dbghost.com
http://www.innovartis.co.uk
+44 (0)208 241 1762
Build, Comparison and Synchronization from Source Control = Database change management for SQL Server


Go to Top of Page

jhuffman



3 Posts

Posted - 12/15/2005 :  15:16:41  Show Profile Send jhuffman a Private Message  Reply with Quote
I tried that and it has no effect on the order of the columns in the script. If you're doing a verification of the two schemas, it will or will not check the ordinal position depending on if the option is checked or not.
Go to Top of Page

Mark Baekdal



86 Posts

Posted - 12/15/2005 :  16:16:34  Show Profile  Visit Mark Baekdal's Homepage Send Mark Baekdal a Private Message  Reply with Quote
so are you saying the table has (at the end of the process) have different ordinal position for the columns?




regards,
Mark Baekdal
http://www.dbghost.com
http://www.innovartis.co.uk
+44 (0)208 241 1762
Build, Comparison and Synchronization from Source Control = Database change management for SQL Server


Go to Top of Page

jhuffman



3 Posts

Posted - 12/16/2005 :  07:09:57  Show Profile Send jhuffman a Private Message  Reply with Quote
Yes, that's correct. It doesn't matter whether the "check ordinal position" option is checked or not, the columns are in a different order.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  New Poll New Poll
 Reply to Topic
 Printer Friendly
Jump To:
Database Change Management © Copyright 2005 Innovartis Ltd. Go To Top Of Page
Snitz Forums 2000
RSS Feed 1 RSS Feed 2
Powered by ForumCo 2000-2008
TOS - AUP - URA