Different types of solder will have different results when used on brass. For example, lead-based solder will not adhere well to brass, while tin-based solder will create a stronger bond.
A silver-based solder is also an option for soldering brass, but it is more expensive than other types of solder. If you are unsure about which type of solder to use, you can consult a professional solderer for advice.