[N+](=[CH2:3])=[N-].[C:4]([C:7]1[NH:17][C:16](=[O:18])[CH:15]=[CH:14][C:8]=1[C:9]([O:11][CH2:12][CH3:13])=[O:10])(=[O:6])[CH3:5]>CCOCC>[C:4]([C:7]1[N:17]=[C:16]([O:18][CH3:3])[CH:15]=[CH:14][C:8]=1[C:9]([O:11][CH2:12][CH3:13])=[O:10])(=[O:6])[CH3:5]An ethereal solution of diazomethane (excess) is added to a stirred suspension of ethyl 1,6-dihydro-2-acetyl-6-oxonicotinate (2.20 g, 10.5 mmol) in 10 ml of ether. The ether and excess diazomethane are removed under vacuum, and the crude product is purified by column chromatography, eluting with 30% ethyl acetate/hexane to give ethyl 2-acetyl-6-methoxynicotinate.