存储过程是这样执行的。
System.Data.CommandType commandType;
commandType = System.Data.CommandType.StoredProcedure;
return ExecuteNonQuery("mr_To_goods",commandType,Yourparameters);

解决方案 »

  1.   

    System.Data.SqlClient.SqlCommand sqlcom_add=new System.Data.SqlClient.SqlCommand("InsertEmployee",this.sqlcon);
    sqlcom_add.CommandType = CommandType.StoredProcedure; System.Data.SqlClient.SqlParameter myPara1=sqlcom_add.Parameters.Add("@emp_id",System.Data.SqlDbType.Char,6);
    myPara1.Value=this.txt_zjgbh.Text;
    myPara1.Direction = ParameterDirection.Input;
    System.Data.SqlClient.SqlDataReader sqlread=sqlcom_add.ExecuteReader();
    sqlread.Close();