BIML 函数支持
BIML Function support
GetDatabaseSchema 似乎无法获取 table 值函数。
是否有另一种方法可以使用 BIML 从函数中提取元数据?
Biml 的数据建模功能没有函数对象,这就解释了为什么 GetDatabaseSchema 没有 return。它仅公开 Tables 和视图以及相关属性。
假设源是 SQL Server 2012+,您可以使用我在 Biml Query Table Builder which simply invokes sys.dm_exec_describe_first_result_set
to get the metadata. Except, you'll want to model it against the metadata for your functions. Which you can divine using What are all the functions and their parameters
中概述的方法
因此,您可以创建以 table 值函数命名的 Biml Table 对象,并且列定义保持不变。对于奖励积分,我会通过注释添加参数和类型。
GetDatabaseSchema 似乎无法获取 table 值函数。 是否有另一种方法可以使用 BIML 从函数中提取元数据?
Biml 的数据建模功能没有函数对象,这就解释了为什么 GetDatabaseSchema 没有 return。它仅公开 Tables 和视图以及相关属性。
假设源是 SQL Server 2012+,您可以使用我在 Biml Query Table Builder which simply invokes sys.dm_exec_describe_first_result_set
to get the metadata. Except, you'll want to model it against the metadata for your functions. Which you can divine using What are all the functions and their parameters
因此,您可以创建以 table 值函数命名的 Biml Table 对象,并且列定义保持不变。对于奖励积分,我会通过注释添加参数和类型。