CreateSchema
Generates a schema file for a specified table or view, providing a structural blueprint for data organization.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Required | Description |
| TableName | String | True | 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 | The complete file path and name where the schema file will be saved. For example, 'C:\\Users\\User\\Desktop\\D365\\Contents.rsd'. |
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. |