private void CreateClient_Click(object sender, EventArgs e) { using (SqlConnection Conect = new SqlConnection(@"Data Source=DESKTOP-78L61PQ\SQLEXPRESS; Initial Catalog=Sistema de Prestamos; Integrated Security=True;")) { Conect.Open(); SqlCommand cmd = new SqlCommand("addClients", Conect); cmd.CommandType = System.Data.CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@Nombre", ClientName.Text); cmd.Parameters.AddWithValue("@Direccion", Dir.Text); cmd.Parameters.AddWithValue("@Telefono", Pho.Text); cmd.ExecuteNonQuery(); ClientName.Clear(); Dir.Clear(); Pho.Clear(); } }