This question already has an answer here:
I have a single-entry Estonian visa which I obtained for my travel to Estonia. But, after acquiring that, my husband got a work permit to Germany coinciding with almost the same dates.
So I have decided to accompany my husband to Germany first, for 4-5 days and then go to Estonia. I also have a valid ticket from Frankfurt to Estonia and proof of accommodation.
Can I do this? Can I enter German with an Estonian Schengen visa and then do my trip to Estonia?