private void Borrar(string IDs) {
string cs = ConfigurationManager.ConnectionStrings["conStr"].ConnectionString;
SqlConnection con = new SqlConnection(cs);
SqlCommand cmd = new SqlCommand("spBorrarEmpleados", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter parameter = new SqlParameter("@IDs", IDs);
cmd.Parameters.Add(parameter); con.Open();
cmd.ExecuteNonQuery();
con.Close(); }
string cs = ConfigurationManager.ConnectionStrings["conStr"].ConnectionString;
SqlConnection con = new SqlConnection(cs);
SqlCommand cmd = new SqlCommand("spBorrarEmpleados", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter parameter = new SqlParameter("@IDs", IDs);
cmd.Parameters.Add(parameter); con.Open();
cmd.ExecuteNonQuery();
con.Close(); }
No hay comentarios:
Publicar un comentario