GO:0050135:   NAD(P)+ nucleosidase activity
Catalysis of the reaction: NAD(P)+ + H2O = ADP-ribose(P) + nicotinamide.