Catalysis of the reaction: an NDP-alpha-D-glucose + D-fructose = a ribonucleoside 5'-diphosphate + H+ + sucrose. The phosphate acceptor can be UDP or ADP.
NDP-glucose:D-fructose 2-alpha-D-glucosyltransferase activity