CreateSchema
Produces a schema file outlining the structure of the specified table or view, supporting data analysis and integration.
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 will be generated. Provide the exact name as it appears in Common Data Service. |
| FileName | String | False | The file name for the generated schema. The file will be generated in 'Location property' + 'System' + 'FileName'. For example, if FileName is set to 'table.rsd', then the file will be generated in '%APPDATA%\\CData\\CDS Data Provider\\Schema\\System\\table.rsd' |
Result Set Columns
| Name | Type | Description |
| FileData | String | The file data that will be outputted encoded in Base64, if the FileName and FileStream inputs are not set. |
| Result | String | Indicates whether the schema generation was successful or failed. |