ADO.NET Provider for Microsoft Dynamics 365

Build 25.0.9434

CreateSchema

Generates a schema file for a specified table or view, providing a structural blueprint for data organization.

CreateSchema

Creates a local schema file (.rsd) from an existing table or view in the data model.

The schema file is created in the directory set in the Location connection property when this procedure is executed. You can edit the file to include or exclude columns, rename columns, or adjust column datatypes.

The provider checks the Location to determine if the names of any .rsd files match a table or view in the data model. If there is a duplicate, the schema file will take precedence over the default instance of this table in the data model. If a schema file is present in Location that does not match an existing table or view, a new table or view entry is added to the data model of the provider.

Input

Name Type Required Accepts Output Streams Description
TableName String True False The name of the table or view for which the schema is being created. This parameter determines the structure to be exported.
FileName String False False The complete file path and name where the schema file will be saved. For example, 'C:\\Users\\User\\Desktop\\D365\\Contents.rsd'.
FileStream String False True An output stream instance to which the schema file data is written. This is used only if the FileName parameter is not specified.

Result Set Columns

Name Type Description
FileData String The schema file data, encoded in Base64, if neither FileName nor FileStream inputs are provided. This allows the schema to be retrieved directly as a Base64-encoded string.
Result String Indicates whether the schema was successfully generated and downloaded. Returns true for success and false otherwise.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434