سلام.
کسی میدونه مشکل کد زیر کجاست که رنامم همچین Error میده.
SqlConnection connect = new SqlConnection();
connect.ConnectionString= myconnectionstring.connect;
connect.Open();
int x=1,y=0 ;
SqlCommand command = new SqlCommand("proc1 @y output", connect);
command.Parameters.AddWithValue("@y", y);
command.CommandType=CommandType.StoredProcedure;
x = Convert.ToInt16(command.ExecuteNonQuery());
MessageBox.Show(x.ToString()+" "+y.ToString());
connect.Close();
erroe
تو برنامم از هر پروسجر که می خوام استفاده کنم همچین Error میده.
کسی میدونه واسه چی پروسجر رو نمی شناسه
Capture.JPG: