Microsoft SQL Server
This source extracts metadata from a Microsoft SQL Server database server.
Overview
Harvesting with this source extracts the following:
-
Databases, schemas, views, and tables metadata
-
Columns and column types
-
Jobs and stored procedures
This source supports:
-
Data Profiling to collect table, row, and column statistics.
-
Set the Domain of harvested assets.
-
Filter Assets to harvest.
Pre-requisites
To harvest jobs and stored procedures, you must grant the following privileges to the database user performing the harvesting:
USE MSDB
GRANT SELECT ON OBJECT::msdb.dbo.sysjobsteps TO 'username'
GRANT SELECT ON OBJECT::msdb.dbo.sysjobs TO 'username'
USE 'database_name'
GRANT VIEW DEFINITION TO 'username'
GRANT SELECT ON OBJECT::sys.sql_expression_dependencies TO 'username'
Sample recipe
source:
type: mssql
config:
host_port: localhost:1433
database: semarchyDemoDatabase
username: username
password: password
sink:
# sink config
Parameters
The following table lists the source parameters.
Parameter |
Description |
|
Database server URL and port. This parameter is mandatory. |
|
Database server user. |
|
This user’s password. |
|
Set to |
|
Set to |
|
Set to |
|
Set to |
|
Database name to harvest. If not set, all databases are harvested. |
|
Set to |
|
Set to |
|
Set to |
|
Set to |
|
Set to |
|
Set to |
|
Lists of regular expressions patterns to define the databases to include ( |
|
Lists of regular expressions patterns to define the schemas to include ( |
|
Lists of regular expressions patterns to define the tables to include ( |
|
Lists of regular expressions patterns to define the views to include ( |
|
Platform instance all assets belong to. |
|
Environment assets belong to. Defaults to |