CreateSchema
Generates a schema file for a specified table or view. This stored procedure supports development and documentation workflows by exporting the structural definition of an entity.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Required | Description |
| TableName | String | True | Specifies the name of the table or view that is used by the CreateSchema stored procedure. This input determines which schema definition the procedure retrieves and prepares for output. |
| FileName | String | False | Specifies the full file path and file name that the CreateSchema stored procedure uses to generate the schema output. This input directs the system to write the resulting schema file to the specified location. |
Result Set Columns
| Name | Type | Description |
| Result | String | Returns a value of 'true' when the CreateSchema stored procedure completes successfully. It returns a value of 'false' when the procedure encounters an error or cannot generate the schema output. |
| FileData | String | Represents the Base64-encoded schema content that is generated by the CreateSchema stored procedure. This output is returned when neither FileName input nor FileStream input is supplied, allowing the caller to retrieve schema data directly. |