John Mizerany
10/28/2024, 4:54 PMuser
10/28/2024, 4:54 PMJohn Mizerany
10/28/2024, 4:56 PMuser
10/28/2024, 4:57 PMsql ALTER DATABASE {database name} SET ALLOW_SNAPSHOT_ISOLATION ON;
It's important to note that this requirement is specific to Airbyte's implementation of CDC for MSSQL. As mentioned in one of the forum discussions, this is not a standard requirement for CDC in MSSQL itself, but rather a design choice made by Airbyte to ensure consistent initial snapshots without locking tables [Forum Post: Regarding CDC option for Replication Method (MSSQL Server connector)](https://discuss.airbyte.io/t/453). For other databases like MySQL, Airbyte also tries to avoid table locks during the initial snapshot. However, the specific implementation may differ. For MySQL, Airbyte doesn't acquire table locks (except for tables defined with MyISAM engine) while creating the snapshot [Documentation > Integrations > Sources > Mysql > Troubleshooting MySQL Sources > Troubleshooting > EventDataDeserializationException errors during initial snapshot](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot). The goal of these measures is to allow for a consistent initial snapshot of the database without disrupting ongoing write operations, which is crucial for maintaining data integrity when setting up CDC replication in Airbyte.