Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试执行此操作时出现错误。
这是我的代码。
public abstract void SaveSchedule(DataTable items);
传入的表格数据流 (TDS) 远程过程调用 (RPC) 协议流不正确。表值参数 1 ("@items"),第 0 行,第 0 列:数据类型 0xF3(用户定义的表类型)具有指定的非零长度数据库名称。数据库名称不允许使用表值参数,只有模式名称和类型名称有效
您可能应该在表对象中删除 TableName
var table = new DataTable(); table.TableName = null; repository.SaveSchedule(table);