Saturday, May 16, 2020

[google-cloud-sql-discuss] Re: Change Tracking in Cloud SQL for SQL Server

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


On Friday, May 15, 2020 at 8:04:10 AM UTC-4, Anshul kumar V wrote:

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? 

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/07d23f3c-9068-4c9a-9b61-347f6a67d4e0%40googlegroups.com.

No comments:

Post a Comment