There is a scarcity of information on the population with diabetes mellitus type 2 and cardiomyopathy (PDMC) in COVID-19, especially on the association between anti-diabetic medications and COVID-19 outcomes. Study is designed as a retrospective cohort analysis covering 2020 and 2021. Data from National Diabetes Registry (CroDiab) were linked to hospital data, primary healthcare data, the SARS-CoV-2 vaccination database, and the SARS-CoV-2 test results database. Study outcomes were cumulative incidence of SARS-CoV-2 positivity, COVID-19 hospitalizations, and COVID-19 deaths. For outcome predictors, logistic regression models were developed. Of 231 796 patients with diabetes mellitus type 2 in the database, 14 485 patients had cardiomyopathy. The two2-year cumulative incidence of all three studies' COVID-19 outcomes was higher in PDMC than in the general diabetes population (positivity 15.3% vs. 14.6%, p = 0.01; hospitalization 7.8% vs. 4.4%, p < 0.001; death 2.6% vs. 1.2%, p < 0.001). Sodium-Glucose Transporter 2 (SGLT-2) inhibitors therapy was found to be protective of SARS-CoV-2 infections [OR 0.722 (95% CI 0.610–0.856)] and COVID-19 hospitalizations [OR 0.555 (95% CI 0.418–0.737)], sulfonylureas to be risk factors for hospitalization [OR 1.184 (95% CI 1.029–1.362)] and insulin to be a risk factor for hospitalization [OR 1.261 (95% CI 1.046–1.520)] and death [OR 1.431 (95% CI 1.080–1.897)]. PDMC are at greater risk of acquiring SARS-CoV-2 infection and having worse outcomes than the general diabetic population. SGLT-2 inhibitors therapy was a protective factor against SARS-CoV-2 infection and against COVID-19 hospitalization, sulfonylurea was the COVID-19 hospitalization risk factor, while insulin was a risk factor for all outcomes. Further research is needed in this diabetes sub-population.