尝试使用 Elixir 的Tds库调用存储过程时出现以下错误
存储过程get_account
存在且只有一个参数@id
iex(5)>Tds.Connection.query(pid, "get_account",[%Tds.Parameter{name: "@id", value: 1}])
{:error,
%Tds.Error{message: nil,
mssql: %{class: 16, length: 252, line_number: 0, msg_text: "Procedure or function 'get_account' expects parameter '@id', which was not supplied.", number: 201, proc_name: "get_account",
server_name: "localhost\\SQLEXPRESS", state: 4}}}
iex(6)>
尝试这个Tds.proc(pid, "get_account",[1])
也不起作用