Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This page contains legacy content. Databricks recommends following the steps in Prepare SQL Server for ingestion using the utility objects script instead.
The SQL Server connector can track the data definition language (DDL) on replicated database objects and apply relevant table schema changes to the destination tables or add new tables in case of full schema replication.
DDL capture requires the additional setup of database objects, including internal tables, stored procedures, and triggers. The ddl_support_objects.sql Transact-SQL (T-SQL) script drops any pre-existing DDL support objects and creates the DDL support objects required to capture DDL changes on the database.
Download the ddl_support_objects.sql script.
Modify the script to set the
modevalue:BOTH: Initializes both CT and CDC objects (default)CT: Initializes CT objectsCDC: Initializes CDC objectsNONE: Deletes all pre-existing CT and CDC objects
(Recommended) Optionally, modify the script to set the
replicationUservariable to your SQL Server database user.If
replicationUseris defined, the script grants all privileges that are required to work with the DDL support objects to the user. Otherwise, you must grant each privilege manually.Run the script on each database that you want to ingest.
Important
Don't run the script on the master database.
If you run the script in a third-party tool, select the entire script before you run it.