Melt the butter over medium heat, then add the onion and cook until softened, about 5 minutes.
Add the diced zucchini and cook, covered, for another 5 minutes or so, stirring occasionally. Turn the heat down to low, salt and pepper to taste, then add the sour cream. Stir the sour cream in and keep warm until serving.