Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Konec
Contributor II
Contributor II

How to avoid SPARSE Columns for proper replication

Hello,

I still have an error: "Table 'XY' contains unsupported sparse columns and will therefore be ignored." but it has impact on whole table? It means in case that table which I am ingesting have those sparse column I am not able to processing deltas? 

I try to disabled those sparse column on DB side (in Articles), I also try change settings in Qlick on that table - table settings > Transform > remove those columns from output.

But non of this helps, after full load is done and Change processing is running i still have the same error.

 

Any idea, please?

Labels (1)
1 Solution

Accepted Solutions
Alan_Wang
Support
Support

Hi @Konec

We're discussing this internally and sparse columns may work with MS-CDC although it is listed in the limitations. It's been tested and working by another user with May 2022 and Nov 2022 versions of Replicate.

MS-CDC can be set up in your SQL Server and enabled on the database and table. In the Replicate task SQL Server endpoint, the internal parameter isMSCDCMode should be checked to turn on MS-CDC mode. A task can't resume interchangeably between transaction logs and MS-CDC logs so it is recommended to test this with a new task and endpoint to see if it works before implementing on the prod environment.

CC: @john_wang 

 

 

If the issue is solved please mark the answer with Accept as Solution.

View solution in original post

8 Replies
john_wang
Support
Support

Hello @Konec ,

Thanks for opening the article.

Not sure if you are meaning SQL Server source endpoint. For SQL Server source, the SPARSE Columns are not supported in "Microsoft SQL Server" source endpoint CDC mode,  neither in "Microsoft SQL Server (MS-CDC)" endpoint under CDC mode. It's supported under Full Load mode only.

We have an open FR article, you may vote for this feature.

Hope this helps.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
Konec
Contributor II
Contributor II
Author

Oh sry, yes MSSQL. It means that i am not albe to do CDC on whole table, in case that there is only one sparse column? Other columns in the table are not sparse. I can’t exclude sparse column any way?

Alan_Wang
Support
Support

Hi @Konec

We're discussing this internally and sparse columns may work with MS-CDC although it is listed in the limitations. It's been tested and working by another user with May 2022 and Nov 2022 versions of Replicate.

MS-CDC can be set up in your SQL Server and enabled on the database and table. In the Replicate task SQL Server endpoint, the internal parameter isMSCDCMode should be checked to turn on MS-CDC mode. A task can't resume interchangeably between transaction logs and MS-CDC logs so it is recommended to test this with a new task and endpoint to see if it works before implementing on the prod environment.

CC: @john_wang 

 

 

If the issue is solved please mark the answer with Accept as Solution.
john_wang
Support
Support

Hello @Konec , copy @Alan_Wang ,

Thank you so much Alan for the clarification. And this is my concern as well, because from MS SQL Server docs, Change data capture supports sparse columns, so MS-CDC is the best bet. I'm sorry I did not verify the functionality prior to replying to the article.

Regards,

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
Konec
Contributor II
Contributor II
Author

Hi,

we have version 6.6.0.790 and it seems it´s not supported in that version? I am using CDC mode for other tables where it is working, but the other tables doesn´t have any sparse columns. 

Alan_Wang
Support
Support

Hi @Konec 

It's been tested with May and Nov 2022 versions of Replicate only. Other version behaviors may differ.

If the issue is solved please mark the answer with Accept as Solution.
Konec
Contributor II
Contributor II
Author

Well, if I have this error "Table 'XY' contains unsupported sparse columns and will therefore be ignored." i have probably different version then you mentioned. It means that I am not able to do MS-CDC on tables which have sparse columns and I can't ignore sparse columns in any way and do CDC on the rest of the table columns?

Only way is to drop those sparse columns directly on the table?

Alan_Wang
Support
Support

There isn't a way to ignore just sparse columns. Dropping those columns on the source would work. I suggest enabling MS-CDC on the table and trying to load them with a different task that is set to use MS-CDC mode. It may work even though you are getting errors.

If the issue is solved please mark the answer with Accept as Solution.