查看保存的过程时出错 - sql

时间:2018-01-15 07:19:58

标签: sql-server tsql stored-procedures

我在sql中创建了一个过程,如下所示:

_handleSubmit(e) {
  e.preventDefault();
  // TODO: do something with -> this.state.file
  fetch('http://localhost:1337/uploadPhoto/logos', {
    method: 'POST',
    body: JSON.stringify({avatar:this.state.file})
  })
  .then((response) => response.json())     
  .catch((err) => { console.log(err); });
}

它已成功创建。但是当我尝试使用查询执行时

exec spAddEmployee;

显示错误如下:

Msg 201,Level 16,State 4,Procedure spAddEmployee,Line 0 过程或函数'spAddEmployee'需要参数'@Name',这是未提供的。

未提供显示@Name参数。但我已经做到了。请帮我弄清楚这个问题是什么。

由于

1 个答案:

答案 0 :(得分:0)

执行SP时,必须提供没有默认值的参数的所有值。

Specify Parameters