question

Håkan Winther avatar image
Håkan Winther asked

Parse error in RedGate compare

I have a database with DATA_COMPRESSION=PAGE set on all tables and all indexes, and I generate object scripts to file with RedGate compare 8.0. The generated scripts looks like the one below:

CREATE TABLE [CRDBO].[amortization]
(
[id] [int] NOT NULL IDENTITY(10000000, 1),
[value_date] [datetime] NOT NULL,
[pmnt_date] [datetime] NOT NULL,
[pmnt_amount] [numeric] (28, 8) NULL,
[pmnt_outstanding] [numeric] (28, 8) NULL,
) ON [PRIMARY] WITH (DATA_COMPRESSION = PAGE)
GO

ALTER TABLE [CRDBO].[amortization] ADD CONSTRAINT [pk_amo] 
PRIMARY KEY CLUSTERED  ([id]) WITH(DATA_COMPRESSION=PAGE) ON [PRIMARY]
GO

A completly valid SQL from what I can see, but Red-Gate Compare generates a parse error when I try to compare my scripts with a database. If I remove the DATA_COMPRESSION=Page option from the script and choose ignore "Data compression" when I compare everything works fine, besides that my data compression will vanish from the target database in the synchronization. Does anyone have another solution? Or does anyone know if Red-Gate are working on a fix? I have reported this as a bug and it is confirmed by Red-Gate, but I haven't seen any fix yet.

sql-server-2008indexingcompressionred-gate
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Melvyn Harbour 1 avatar image
Melvyn Harbour 1 answered

I've looked it up in our bug tracking system to see what the status is. Apparently fixing the problem is non-trivial. I believe that the fix is currently being targetted for the next major release, but I can't offer anything more concrete than that I'm afraid. I'll see if I can round up one of the team to drop by here and let you know a bit more detail.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image
Grant Fritchey answered

Best guess I can offer is to make sure you've got the latest version installed. They're up to 8.1.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.