Hello,
I am using SQL Compare 8 to compare 2 SQL server 2008 databases hosted on different servers.
I think SQL Compare is picking up trailing whitespaces in the column names as differences. Is there anyway to avoid this? I came across this
Link where it mentions about a 'Ignore spaces in object names" setting in the Project oprions menu. But I don't see any such option when I look in Project options.
As of now, I have the 'Red Gate defaults' enabled.
Below are the scipts for the same table on DB1 and DB2
DB1
CREATE TABLE [dbo].[XYZTable]
(
[CUST-ID] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[FIRST-NAME] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MIDDLE-NAME] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LAST-NAME] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NAME-SUFFIX] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TITLE] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LICENSED-IND] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PROF-TYPE] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EMAIL-ADDR] [nvarchar] (2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
)
GO
Database 2
CREATE TABLE [dbo].[XYZTable]
(
[CUST-ID] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[FIRST-NAME] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MIDDLE-NAME] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LAST-NAME] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NAME-SUFFIX] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TITLE] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LICENSED-IND] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PROF-TYPE] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EMAIL-ADDR ] [nvarchar] (2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
)
Any help is appreciated, Thanks!
I am using SQL Compare 8 to compare 2 SQL server 2008 databases hosted on different servers.
I think SQL Compare is picking up trailing whitespaces in the column names as differences. Is there anyway to avoid this? I came across this Link where it mentions about a 'Ignore spaces in object names" setting in the Project oprions menu. But I don't see any such option when I look in Project options.
As of now, I have the 'Red Gate defaults' enabled.
Below are the scipts for the same table on DB1 and DB2
DB1
Database 2
Any help is appreciated, Thanks!