Microsoft SQL Server database user requirements
The Microsoft SQL Server connector is in Public Preview.
This article describes the privileges you must grant to the Microsoft SQL Server database user that you plan to use for ingesting into Databricks.
Databricks recommends that you create a database user that is solely used for Databricks ingestion.
Grant database privileges
The following table lists the privileges that the database user must have, regardless of whether you use change data capture (CDC) or change tracking. It also shows the commands to grant each privilege.
Privileges | Commands |
---|---|
Read access to the following system tables and views in the master database:
| Run the following T-SQL commands in the master database: SQL
|
Execute permissions on the following system stored procedures in the database that you want to ingest:
| Run the following T-SQL commands in the database that you want to ingest: SQL
|
| Run the following T-SQL command for each schema and table that you want to ingest: SQL
|
| Run the following T-SQL commands in the database that you want to ingest: SQL
|
Change data capture (CDC) privilege requirements
If CDC is enabled, additional privileges are required on the DDL support objects. See Enable built-in CDC in Microsoft SQL Server.
Change tracking privilege requirements
If change tracking is enabled, additional privileges are required on the DDL support objects. See Enable change tracking in Microsoft SQL Server.