error about unique column name
vincentj
Posts: 47
Hi,
I just updated to SQL Compare 10 on our build server, and now when I sync the database I get the following error:
I changed the build script to use version 9 instead and then it worked fine. Do I need to specify some new parameter to make version 10 work the same way as 9?
I just updated to SQL Compare 10 on our build server, and now when I sync the database I get the following error:
Column names in each table must be unique. Column name 'foo' in table 'dbo.bar' is specified more than once.
I changed the build script to use version 9 instead and then it worked fine. Do I need to specify some new parameter to make version 10 work the same way as 9?
Comments
Can you make sure whether this option 'Use Case sensitive object definition' in Project options --> Behavior is selected or not?
About this option: For databases with case-sensitive collation, enables objects with case-sensitive names to be compared and synchronized. For example, considers object names such as ATable and atable as different and performs case-sensitive comparisons on stored procedures, and so on.
You should use this option only if you have databases with binary or case-sensitive sort order.
Note that you should take care when you change this option. For example, if you create a database snapshot with this option selected and you then compare the snapshot with another database with the option cleared, SQL Compare may produce unexpected errors.
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Just for kicks, I tried adding CaseSensitiveObjectDefinition to the command line options (we don't use project files) and I still get the error. It seems like SQL Compare is enabling that option by default. Is there a way to explicitly tell it to do a Case Insensitive comparison?
/Options:CaseSensitiveObjectDefinition
Are you specifying it in similar manner?
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Could the source db be CS and the target CI? This still wouldn't explain why it's trying to create a new column before it drops the old column.
I'm going to follow this up with a support ticket and see if we can get to the bottom of it.
Database Administrator / Software Engineer
Nelnet Business Solutions - FACTS-SIS