In the crystal, O—HW⋯OC, N—HNA⋯ONA, N—HSB⋯OC and N—HSB⋯OSB (W = water, C = carboxyl­ate, NA = nicotinamide and SB = 4-sulfamoylbenzoate) hydrogen bonds (Table 1 ▸) link the mol­ecules, enclosing (8) and (18) ring motifs (Fig. 2 ▸) into a three-dimensional architecture. Hydrogen bonding and van der Waals contacts are the dominant inter­actions in the crystal packing. No significant π–π, C—H⋯π or C—H⋯O inter­actions are observed.