SqlCommand?sqlcmd?=?new?SqlCommand(sqltxt,?conn);
sqlcomm.CommandType?=?CommandType.StoredProcedure;
SqlParameter[]?param?=?new?SqlParameter[5];
param[0]=new?SqlParameter("@SelectRadio",SelectId);
param[1]=new?SqlParameter("@UserName",TextBox1.Text);
param[2]=new?SqlParameter("@PassWord",TextBox2.Text);
param[3]=new?SqlParameter("@NewPassWord",TextBox3.Text);
param[4]=new?SqlParameter("@rturn",0);
param[4].Direction?=?ParameterDirection.Output;
sqlcomm.Parameters.AddRange(param);
conn.Open()
sqlcmd.ExecuteNonQuery()
Select?Case?int.Parse(param[4].Value.ToString())转载请注明出处:
未经允许不得转载:lxfamn » vb.net 调用存储过程获得返回值