Change Tracking in Cloud SQL for SQL Server

56 views
Skip to first unread message

Anshul kumar V

unread,
May 15, 2020, 8:04:10 AM5/15/20
to Google Cloud SQL discuss

I am using cloud sql MS Sql server and I have enabled Change Tracking on database and on a table. I am able to capture the changes on the table as expected. I kept retention period as 10 minutes with auto cleanup ON, but unfortunately auto cleanup is not clearing 10 minutes old changes from the change table.

 

Then I tried manual cleanup using sp_flush_CT_internal_table_on_demand and it returned a message "Only members of the sysadmin fixed server role can perform this operation." I understand in Cloud SQL for SQL Server, the sysadmin role is not supported. Below are my questions.

 

1. Does Cloud SQL for SQL Server fully support Change Tracking feature? If so why auto cleanup is not working as expected?

2. Is there any alternate way to execute T-SQL commands (like sp_flush_CT_internal_table_on_demand) which needs sysadmin privilege?

3. Does Cloud SQL for SQL Server support Change Data Capture feature? 

noverlyjoseph

unread,
May 16, 2020, 10:06:43 AM5/16/20
to Google Cloud SQL discuss
Based on the documentation, it does not seem MS SQL Server on Cloud SQL support this, which might explain the behaviour you've noticed.
However change tracking is available for Cloud SQL MySQL using binary logging
Reply all
Reply to author
Forward
0 new messages