ISSCommandWithParameters 公开对 SQL Server XML 和用户定义的类型(UDT)的支持。 这是从核心 OLE DB 接口 ICommandWithParameters 继承的可选接口。 除了继承自 ICommandWithParameters 的三种方法之外; GetParameterInfo、 MapParameterNames 和 SetParameterInfo; ISSCommandWithParameters 提供了两种用于处理服务器特定数据类型的新方法。
注释
当使用服务组件时,可以使用 ISSCommandWithParameters 接口,但服务组件本身将不会使用此接口。
方法 | DESCRIPTION |
---|---|
ISSCommandWithParameters::GetParameterProperties (OLE DB) | 返回数组中传递给命令的每个 UDT 或 XML 参数的一个 SSPARAMPROPS 属性集结构,但对于其他类型的参数,不会返回任何结构。 |
ISSCommandWithParameters::SetParameterProperties (OLE DB) | 按序号设置每个参数的参数属性,或通过指定 SSPARAMPROPS 结构的数组来设置批量参数属性。 |