用户定义 table 类型的缓冲区格式

Buffer format for user-defined table types

我想使用 node.js 和 mssql + tedious 模块调用 SQL 服务器存储过程。我需要传入的参数之一是用户定义的 table 类型。我在这个库中有一个 UDT 参数类型,它的值是 Buffer。但是,我不知道如何格式化用户定义的 table 类型。

是否有说明如何序列化用户定义的 table 类型数据的规范?

我认为我的困惑是术语不一致造成的。

根据Table Valued Parameter (TVP) Values in MSDN, user-defined table types are the same as TVPs. TVPs are supported directly according to the README of node-mssql