Skip to main content

datacontract import sqlserver

Import a data contract from a SQL Server database.

datacontract import sqlserver [OPTIONS]
OptionDefaultDescription
--sourceThe host of the SQL Server instance.
--portThe SQL Server port (default 1433).
--databaseThe database name.
--schemaThe schema name (default dbo).
--tableName of a table to import (repeat for multiple tables, omit for all tables).
--outputFile path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--ownerThe owner or team responsible for managing the data contract.
--idThe identifier for the data contract.
--debug / --no-debugEnable debug logging
datacontract import sqlserver --source localhost --database mydb --output datacontract.yaml

Guide: Import: SQL Server.