CreateSchema
Generates a local schema file for the specified table or view, reflecting its current metadata definition.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Required | Accepts Output Streams | Description |
| TableName | String | True | False | Specifies the name of the table or view to generate a schema file for (for example, SimpleTable). |
| FileName | String | False | False | Specifies the full file path and name of the generated schema file (for example, SimpleTable). |
| FileStream | String | False | True | Specifies an output stream instance where the schema file data is written. This input is used only when the FileName input is not provided. |
| WriteToFile | String | False | False | Determines whether the stored procedure should write the generated schema to a file. The default value is true. Set this to false to return the schema data as a FileStream or FileData output instead. |
Result Set Columns
| Name | Type | Description |
| Result | String | Indicates whether the schema generation process completed successfully or failed. |
| FileData | String | Returns the generated schema file data encoded in Base64 when both FileName and FileStream inputs are not provided. |