﻿IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029016') BEGIN 
  EXEC sp_rename 'T_HETES.PK_T_4029016', 'PK_Hetes';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38727') BEGIN 
  EXEC sp_rename 'T_ALLAMPOLGARSAG.PK_T_38727', 'PK_Allampolgarsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028218') BEGIN 
  EXEC sp_rename 'T_ERETTSEGIKERDES.PK_T_4028218', 'PK_ErettsegiKerdes';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027550') BEGIN 
  EXEC sp_rename 'T_RESZSZAKKEPESITESTIPUS.PK_T_4027550', 'PK_ReszszakkepesitesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025301') BEGIN 
  EXEC sp_rename 'T_TANEV.PK_T_4025301', 'PK_Tanev';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027741') BEGIN 
  EXEC sp_rename 'T_OGFOGLALKOZAS.PK_T_4027741', 'PK_ogFoglalkozas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025865') BEGIN 
  EXEC sp_rename 'T_ERTESITESTIPUS.PK_T_4025865', 'PK_ErtesitesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028183') BEGIN 
  EXEC sp_rename 'T_MEROHELYTIPUS.PK_T_4028183', 'PK_MerohelyTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027629') BEGIN 
  EXEC sp_rename 'T_FOGLALKOZTATASTIPUSA.PK_T_4027629', 'PK_FoglalkoztatasTipusa';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025651') BEGIN 
  EXEC sp_rename 'T_ERTEKELESTIPUS.PK_T_4025651', 'PK_ErtekelesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028234') BEGIN 
  EXEC sp_rename 'T_ERETTSEGIVALASZ.PK_T_4028234', 'PK_ErettsegiValasz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_11094') BEGIN 
  EXEC sp_rename 'T_CIM.PK_T_11094', 'PK_Cim';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027734') BEGIN 
  EXEC sp_rename 'T_OGFOGLALKOZAS_TEREM.PK_T_4027734', 'PK_ogFoglalkozas_Terem';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029037') BEGIN 
  EXEC sp_rename 'T_LEPELOADASJEGYZEK.PK_T_4029037', 'PK_LepEloadasJegyzek';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028187') BEGIN 
  EXEC sp_rename 'T_PENZNEMTIPUS.PK_T_4028187', 'PK_PenznemTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025139') BEGIN 
  EXEC sp_rename 'T_ALKALMAZOTT.PK_T_4025139', 'PK_Alkalmazott';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026088') BEGIN 
  EXEC sp_rename 'T_SCHEDULERLOG.PK_T_4026088', 'PK_SchedulerLog';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2026494') BEGIN 
  EXEC sp_rename 'T_SCSTICKERSTATUS.PK_T_2026494', 'PK_SCStickerStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027548') BEGIN 
  EXEC sp_rename 'T_SZAKMACSOPORTTIPUS.PK_T_4027548', 'PK_SzakmacsoportTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38677') BEGIN 
  EXEC sp_rename 'T_STUDENTCARDSTATUS.PK_T_38677', 'PK_StudentCardStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026239') BEGIN 
  EXEC sp_rename 'T_INTEZMENY.PK_T_4026239', 'PK_Intezmeny';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027675') BEGIN 
  EXEC sp_rename 'T_INTEZMENYESZKOZADATSZOLGALTA.PK_T_4027675', 'PK_IntezmenyEszkozAdatszolgaltatas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027842') BEGIN 
  EXEC sp_rename 'T_OGFOGLALKOZASFOGLALTSAG.PK_T_4027842', 'PK_ogFoglalkozasFoglaltsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028752') BEGIN 
  EXEC sp_rename 'T_ESLTANTARGYKATEGORIA.PK_T_4028752', 'PK_ESLTantargykategoria';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027181') BEGIN 
  EXEC sp_rename 'T_EPENZTARCATETEL.PK_T_4027181', 'PK_EPenztarcaTetel';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025863') BEGIN 
  EXEC sp_rename 'T_FELHASZNALOERTESITES.PK_T_4025863', 'PK_FelhasznaloErtesites';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027745') BEGIN 
  EXEC sp_rename 'T_OGFOGLALTSAGTIPUS.PK_T_4027745', 'PK_OgFoglaltsagTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_9876') BEGIN 
  EXEC sp_rename 'T_EMAIL.PK_T_9876', 'PK_Email';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025575') BEGIN 
  EXEC sp_rename 'T_TANITASIORA.PK_T_4025575', 'PK_TanitasiOra';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028750') BEGIN 
  EXEC sp_rename 'T_TAVOLLETSTATUSZ.PK_T_4028750', 'PK_TavolletStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_FELTOLTOTTFAJL_HAZIFELA') BEGIN 
  EXEC sp_rename 'T_FELTOLTOTTFAJL_HAZIFELADATOK.PK_T_T_FELTOLTOTTFAJL_HAZIFELA', 'PK_FeltoltottFajl_HaziFeladatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026078') BEGIN 
  EXEC sp_rename 'T_MULASZTASSTATISZTIKATIPUS.PK_T_4026078', 'PK_MulasztasStatisztikaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_10735') BEGIN 
  EXEC sp_rename 'T_TRANSACTION.PK_T_10735', 'PK_Transaction';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027751') BEGIN 
  EXEC sp_rename 'T_OGGENERATORALAP.PK_T_4027751', 'PK_ogGeneratorAlap';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_1931615') BEGIN 
  EXEC sp_rename 'T_MUNKAVISZONYJELLEGE.PK_T_1931615', 'PK_MunkaviszonyJellege';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026677') BEGIN 
  EXEC sp_rename 'T_NEMKOTOTTMUNKAIDO.PK_T_4026677', 'PK_NemKotottMunkaido';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028751') BEGIN 
  EXEC sp_rename 'T_TAVOLLETTIPUS.PK_T_4028751', 'PK_TavolletTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025157') BEGIN 
  EXEC sp_rename 'T_MUNKAKORTIPUS.PK_T_4025157', 'PK_MunkakorTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38637') BEGIN 
  EXEC sp_rename 'T_NATIONALITY.PK_T_38637', 'PK_Nationality';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025556') BEGIN 
  EXEC sp_rename 'T_TANMENET.PK_T_4025556', 'PK_Tanmenet';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_FELTOLTOTTFAJL_ORARENDI') BEGIN 
  EXEC sp_rename 'T_FELTOLTOTTFAJL_ORARENDIORA.PK_T_T_FELTOLTOTTFAJL_ORARENDI', 'PK_FeltoltottFajl_OrarendiOra';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028160') BEGIN 
  EXEC sp_rename 'T_FENNTARTO.PK_T_4028160', 'PK_Fenntarto';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027761') BEGIN 
  EXEC sp_rename 'T_OGINTEZMENYFOGLALTSAG.PK_T_4027761', 'PK_ogIntezmenyFoglaltsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025862') BEGIN 
  EXEC sp_rename 'T_ERTESITESSZINTIPUS.PK_T_4025862', 'PK_ErtesitesSzinTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028847') BEGIN 
  EXEC sp_rename 'T_DASHBOARDUZENET.PK_T_4028847', 'PK_DashboardUzenet';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028321') BEGIN 
  EXEC sp_rename 'T_KIRKONTENER.PK_T_4028321', 'PK_KIRKontener';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027833') BEGIN 
  EXEC sp_rename 'T_OGORARENDIORA.PK_T_4027833', 'PK_ogOrarendiOra';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026068') BEGIN 
  EXEC sp_rename 'T_TANULOTARGYMULASZTASSTATISZT.PK_T_4026068', 'PK_TanuloTargyMulasztasStatisztika';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028855') BEGIN 
  EXEC sp_rename 'T_DASHBOARDUZENETKATEGORIA.PK_T_4028855', 'PK_DashboardUzenetKategoria';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_1768080') BEGIN 
  EXEC sp_rename 'T_KULFOLDISTATUSZTIPUS.PK_T_1768080', 'PK_KulfoldiStatuszTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028838') BEGIN 
  EXEC sp_rename 'T_EUGYINTEZESLOG.PK_T_4028838', 'PK_EugyintezesLog';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38416') BEGIN 
  EXEC sp_rename 'T_MARITALSTATUS.PK_T_38416', 'PK_MaritalStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027730') BEGIN 
  EXEC sp_rename 'T_OGOSZTALYCSOPORT.PK_T_4027730', 'PK_ogOsztalyCsoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_20775') BEGIN 
  EXEC sp_rename 'T_TELEFON.PK_T_20775', 'PK_Telefon';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_10685') BEGIN 
  EXEC sp_rename 'T_PARTNER.PK_T_10685', 'PK_Partner';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025392') BEGIN 
  EXEC sp_rename 'T_TANTERV.PK_T_4025392', 'PK_Tanterv';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_FELTOLTOTTFAJL_TANITASI') BEGIN 
  EXEC sp_rename 'T_FELTOLTOTTFAJL_TANITASIORA.PK_T_T_FELTOLTOTTFAJL_TANITASI', 'PK_FeltoltottFajl_TanitasiOra';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025839') BEGIN 
  EXEC sp_rename 'T_TEVEKENYSEG.PK_T_4025839', 'PK_Tevekenyseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_3832190') BEGIN 
  EXEC sp_rename 'T_SCCARDBEVONASOKA.PK_T_3832190', 'PK_SCCardBevonasOka';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025518') BEGIN 
  EXEC sp_rename 'T_TANULOCSOPORT.PK_T_4025518', 'PK_TanuloCsoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_OGOSZTALYCSOPORT_KIZARO') BEGIN 
  EXEC sp_rename 'T_OGOSZTALYCSOPORT_KIZAROCSOPO.PK_T_T_OGOSZTALYCSOPORT_KIZARO', 'PK_ogOsztalyCsoport_KizaroCsoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028392') BEGIN 
  EXEC sp_rename 'T_KKAMIELEKTROAKUTIPUS.PK_T_4028392', 'PK_KKAMIElektroakuTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026053') BEGIN 
  EXEC sp_rename 'T_TANULOMULASZTASSTATISZTIKA.PK_T_4026053', 'PK_TanuloMulasztasStatisztika';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026958') BEGIN 
  EXEC sp_rename 'T_HIBAJEGY.PK_T_4026958', 'PK_Hibajegy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028464') BEGIN 
  EXEC sp_rename 'T_ERTMONDATBANKTIPUS.PK_T_4028464', 'PK_ErtMondatbankTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028312') BEGIN 
  EXEC sp_rename 'T_KIRSZOLGALTATASTIPUS.PK_T_4028312', 'PK_KirSzolgaltatasTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028314') BEGIN 
  EXEC sp_rename 'T_KIRKONTENERELEM.PK_T_4028314', 'PK_KIRKontenerElem';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027746') BEGIN 
  EXEC sp_rename 'T_OGOSZTALYCSOPORTFOGLALTSAG.PK_T_4027746', 'PK_ogOsztalyCsoportFoglaltsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_1638867') BEGIN 
  EXEC sp_rename 'T_VPOSCONFIG.PK_T_1638867', 'PK_VPOSConfig';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028389') BEGIN 
  EXEC sp_rename 'T_KKAMIJAZZZENETIPUS.PK_T_4028389', 'PK_KKAMIJazzZeneTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026593') BEGIN 
  EXEC sp_rename 'T_FOGLALKOZASARCHIV.PK_T_4026593', 'PK_FoglalkozasArchiv';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38408') BEGIN 
  EXEC sp_rename 'T_IMPOSITIONSTATUS.PK_T_38408', 'PK_ImpositionStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027724') BEGIN 
  EXEC sp_rename 'T_OGTANARFOGLALTSAG.PK_T_4027724', 'PK_ogTanarFoglaltsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025838') BEGIN 
  EXEC sp_rename 'T_TEVEKENYSEGTIPUS.PK_T_4025838', 'PK_TevekenysegTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028387') BEGIN 
  EXEC sp_rename 'T_KKAMIKLASSZIKUSTIPUS.PK_T_4028387', 'PK_KKAMIKlasszikusTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_3715846') BEGIN 
  EXEC sp_rename 'T_MEGYE.PK_T_3715846', 'PK_Megye';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027736') BEGIN 
  EXEC sp_rename 'T_OGTANTARGYFOGLALTSAG.PK_T_4027736', 'PK_ogTantargyFoglaltsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028393') BEGIN 
  EXEC sp_rename 'T_KKAMINEPZENETIPUS.PK_T_4028393', 'PK_KKAMINepzeneTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026042') BEGIN 
  EXEC sp_rename 'T_OLDALLATOGATOTTSAG.PK_T_4026042', 'PK_OldalLatogatottsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027935') BEGIN 
  EXEC sp_rename 'T_NATKERDOIV.PK_T_4027935', 'PK_NATKerdoiv';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028590') BEGIN 
  EXEC sp_rename 'T_OKTNEVELESIKATEGORIA.PK_T_4028590', 'PK_OktNevelesiKategoria';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026539') BEGIN 
  EXEC sp_rename 'T_SOROLASOKATIPUS.PK_T_4026539', 'PK_SorolasOkaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38392') BEGIN 
  EXEC sp_rename 'T_LANGUAGE.PK_T_38392', 'PK_Language';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025574') BEGIN 
  EXEC sp_rename 'T_HELYETTESITESTIPUS.PK_T_4025574', 'PK_HelyettesitesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028316') BEGIN 
  EXEC sp_rename 'T_KIRKONTENERSTATUSZ.PK_T_4028316', 'PK_KIRKontenerStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027729') BEGIN 
  EXEC sp_rename 'T_OGTEREM_TANTARGY.PK_T_4027729', 'PK_ogTerem_Tantargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028390') BEGIN 
  EXEC sp_rename 'T_KKAMITERULETTIPUS.PK_T_4028390', 'PK_KKAMITeruletTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_3558958') BEGIN 
  EXEC sp_rename 'T_SYSTEMPARAMETERVALUE.PK_T_3558958', 'PK_SystemParameterValue';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025372') BEGIN 
  EXEC sp_rename 'T_ERTELMIFOGYATEKOSTIPUS.PK_T_4025372', 'PK_ErtelmiFogyatekosTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027847') BEGIN 
  EXEC sp_rename 'T_OGTEREMFOGLALTSAG.PK_T_4027847', 'PK_ogTeremFoglaltsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028421') BEGIN 
  EXEC sp_rename 'T_KKAMIVEGZETTSEG.PK_T_4028421', 'PK_KKAMIVegzettseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028865') BEGIN 
  EXEC sp_rename 'T_AMIFOTARGY.PK_T_4028865', 'PK_AMIFotargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028148') BEGIN 
  EXEC sp_rename 'T_JELSZOVISSZAALLITAS.PK_T_4028148', 'PK_JelszoVisszaallitas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025138') BEGIN 
  EXEC sp_rename 'T_ANYANYELV.PK_T_4025138', 'PK_Anyanyelv';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028579') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUM.PK_T_4028579', 'PK_Dokumentum';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028391') BEGIN 
  EXEC sp_rename 'T_KKAMIVEGZETTSEGTIPUS.PK_T_4028391', 'PK_KKAMIVegzettsegTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026537') BEGIN 
  EXEC sp_rename 'T_CSOPORTTIPUS_FOGLALKOZASTIPU.PK_T_4026537', 'PK_CsoportTipus_FoglalkozasTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028863') BEGIN 
  EXEC sp_rename 'T_AMITAGOZAT.PK_T_4028863', 'PK_AMITagozat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38369') BEGIN 
  EXEC sp_rename 'T_CIMTIPUS.PK_T_38369', 'PK_CimTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025562') BEGIN 
  EXEC sp_rename 'T_NAPTARINAP.PK_T_4025562', 'PK_NaptariNap';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027363') BEGIN 
  EXEC sp_rename 'T_NEBULO.PK_T_4027363', 'PK_Nebulo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028383') BEGIN 
  EXEC sp_rename 'T_KKAMIZENEMUVKATTIPUS.PK_T_4028383', 'PK_KKAMIZenemuvKatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025371') BEGIN 
  EXEC sp_rename 'T_HALLASSERULTTIPUS.PK_T_4025371', 'PK_HallasserultTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028864') BEGIN 
  EXEC sp_rename 'T_AMITANTARGYKOTELEZOSEG.PK_T_4028864', 'PK_AMITantargyKotelezoseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027911') BEGIN 
  EXEC sp_rename 'T_KOZOSSEGISZOLGALATTIPUS.PK_T_4027911', 'PK_KozossegiSzolgalatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025641') BEGIN 
  EXEC sp_rename 'T_TANULOERTEKELES.PK_T_4025641', 'PK_TanuloErtekeles';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028414') BEGIN 
  EXEC sp_rename 'T_KKELEKTROAKUZENE.PK_T_4028414', 'PK_KKElektroakuZene';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026005') BEGIN 
  EXEC sp_rename 'T_KIZAROCSOPORT.PK_T_4026005', 'PK_KizaroCsoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025134') BEGIN 
  EXEC sp_rename 'T_IGAZOLVANYTIPUS.PK_T_4025134', 'PK_IgazolvanyTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025209') BEGIN 
  EXEC sp_rename 'T_INTEZMENYADATOK.PK_T_4025209', 'PK_IntezmenyAdatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026707') BEGIN 
  EXEC sp_rename 'T_ENAPLOFORRAS.PK_T_4026707', 'PK_ENaploForras';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026530') BEGIN 
  EXEC sp_rename 'T_KIRTELEPHELY.PK_T_4026530', 'PK_KirTelephely';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028955') BEGIN 
  EXEC sp_rename 'T_BESZERZESIANYAG.PK_T_4028955', 'PK_BeszerzesiAnyag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38330') BEGIN 
  EXEC sp_rename 'T_NEM.PK_T_38330', 'PK_Nem';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_1312024') BEGIN 
  EXEC sp_rename 'T_TRANSACTIONANALYSISFILESTATU.PK_T_1312024', 'PK_TransactionAnalysisFileStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028308') BEGIN 
  EXEC sp_rename 'T_SZAKTIPUS.PK_T_4028308', 'PK_SzakTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028386') BEGIN 
  EXEC sp_rename 'T_KKGYOGYPEDTERTIPUS.PK_T_4028386', 'PK_KKGyogypedTerTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028658') BEGIN 
  EXEC sp_rename 'T_KURZUS.PK_T_4028658', 'PK_Kurzus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025801') BEGIN 
  EXEC sp_rename 'T_PEDAGOGUSELETPALYAMODELL.PK_T_4025801', 'PK_PedagogusEletpalyamodell';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026693') BEGIN 
  EXEC sp_rename 'T_ENAPLOINFRA.PK_T_4026693', 'PK_ENaploInfra';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028947') BEGIN 
  EXEC sp_rename 'T_BESZERZESIANYAGTORZS.PK_T_4028947', 'PK_BeszerzesiAnyagtorzs';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025370') BEGIN 
  EXEC sp_rename 'T_LATASSERULTTIPUS.PK_T_4025370', 'PK_LatasserultTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028419') BEGIN 
  EXEC sp_rename 'T_KKGYOGYPEDVEGZETTSEG.PK_T_4028419', 'PK_KKGyogypedVegzettseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028664') BEGIN 
  EXEC sp_rename 'T_ELVEGZETTKURZUS.PK_T_4028664', 'PK_ElvegzettKurzus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026004') BEGIN 
  EXEC sp_rename 'T_RENDSZERBEALLITASTIPUS.PK_T_4026004', 'PK_RendszerBeallitasTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026708') BEGIN 
  EXEC sp_rename 'T_ENAPLOTIPUS.PK_T_4026708', 'PK_ENaploTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025133') BEGIN 
  EXEC sp_rename 'T_MUNKAVISZONYTIPUS.PK_T_4025133', 'PK_MunkaviszonyTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028976') BEGIN 
  EXEC sp_rename 'T_BESZERZESIIGENY.PK_T_4028976', 'PK_BeszerzesiIgeny';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028425') BEGIN 
  EXEC sp_rename 'T_KKJAZZZENE.PK_T_4028425', 'PK_KKJazzZene';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028613') BEGIN 
  EXEC sp_rename 'T_FOGADOORA.PK_T_4028613', 'PK_Fogadoora';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026366') BEGIN 
  EXEC sp_rename 'T_MUNKAIDOKEDVEZMENYOKA.PK_T_4026366', 'PK_MunkaidoKedvezmenyOka';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_25529') BEGIN 
  EXEC sp_rename 'T_BANKACCOUNT.PK_T_25529', 'PK_BankAccount';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_1291258') BEGIN 
  EXEC sp_rename 'T_ORSZAGTIPUS.PK_T_1291258', 'PK_OrszagTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026669') BEGIN 
  EXEC sp_rename 'T_ESLADAT.PK_T_4026669', 'PK_ESLAdat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028954') BEGIN 
  EXEC sp_rename 'T_BESZERZESIIGENYDOKUMENTUM.PK_T_4028954', 'PK_BeszerzesiIgenyDokumentum';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027970') BEGIN 
  EXEC sp_rename 'T_ORATULAJDONSAGTIPUS.PK_T_4027970', 'PK_OraTulajdonsagTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025699') BEGIN 
  EXEC sp_rename 'T_TANULOESEMENY.PK_T_4025699', 'PK_TanuloEsemeny';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027298') BEGIN 
  EXEC sp_rename 'T_UPLOADEDFILE.PK_T_4027298', 'PK_UploadedFile';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025800') BEGIN 
  EXEC sp_rename 'T_ELETPALYAMODELLFOKOZATTIPUS.PK_T_4025800', 'PK_EletpalyamodellFokozatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028427') BEGIN 
  EXEC sp_rename 'T_KKKEPESITESJELLTIPUS.PK_T_4028427', 'PK_KKKepesitesJellTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027539') BEGIN 
  EXEC sp_rename 'T_SZAKKEPESITESTIPUS.PK_T_4027539', 'PK_SzakkepesitesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028634') BEGIN 
  EXEC sp_rename 'T_FOGADOORA_OSZTALYCSOPORT.PK_T_4028634', 'PK_Fogadoora_OsztalyCsoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025360') BEGIN 
  EXEC sp_rename 'T_ETKEZESIKEDVEZMENYTIPUS.PK_T_4025360', 'PK_EtkezesiKedvezmenyTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_3044531') BEGIN 
  EXEC sp_rename 'T_HONAPOK.PK_T_3044531', 'PK_Honapok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026625') BEGIN 
  EXEC sp_rename 'T_ESLADATTIPUS.PK_T_4026625', 'PK_ESLAdatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028982') BEGIN 
  EXEC sp_rename 'T_BESZERZESIIGENYMEGJEGYZES.PK_T_4028982', 'PK_BeszerzesiIgenyMegjegyzes';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028385') BEGIN 
  EXEC sp_rename 'T_KKKEPESITESTIPUS.PK_T_4028385', 'PK_KKKepesitesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026346') BEGIN 
  EXEC sp_rename 'T_INTEZMENYADATSZOLGALTATAS.PK_T_4026346', 'PK_IntezmenyAdatszolgaltatas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026002') BEGIN 
  EXEC sp_rename 'T_ORATERVTARGY.PK_T_4026002', 'PK_OraTervTargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028629') BEGIN 
  EXEC sp_rename 'T_FOGADOORAIDOPONT.PK_T_4028629', 'PK_FogadooraIdopont';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028932') BEGIN 
  EXEC sp_rename 'T_BESZERZESISZALLITO.PK_T_4028932', 'PK_BeszerzesiSzallito';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028635') BEGIN 
  EXEC sp_rename 'T_FOGADOORAIDOPONT_GONDVISELO.PK_T_4028635', 'PK_FogadooraIdopont_Gondviselo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028687') BEGIN 
  EXEC sp_rename 'T_TANULOTANUGYIADATOK.PK_T_4028687', 'PK_TanuloTanugyiAdatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025799') BEGIN 
  EXEC sp_rename 'T_ELETPALYAMODELLSTATUSZOK.PK_T_4025799', 'PK_EletpalyamodellStatuszok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028907') BEGIN 
  EXEC sp_rename 'T_TEREM_FELTOLTOTTFAJL.PK_T_4028907', 'PK_Terem_FeltoltottFajl';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026709') BEGIN 
  EXEC sp_rename 'T_SZERZODOSZEMELYPOZICIO.PK_T_4026709', 'PK_SzerzodoSzemelyPozicio';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025359') BEGIN 
  EXEC sp_rename 'T_HATRANYOSHELYZETTIPUS.PK_T_4025359', 'PK_HatranyosHelyzetTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028416') BEGIN 
  EXEC sp_rename 'T_KKNEPZENE.PK_T_4028416', 'PK_KKNepzene';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2893470') BEGIN 
  EXEC sp_rename 'T_PAYMENTTITLE_ROLES.PK_T_2893470', 'PK_PaymentTitle_Roles';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_22942') BEGIN 
  EXEC sp_rename 'T_CREDITCARDPAYMENT.PK_T_22942', 'PK_CreditCardPayment';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025654') BEGIN 
  EXEC sp_rename 'T_TANULOMULASZTAS.PK_T_4025654', 'PK_TanuloMulasztas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025997') BEGIN 
  EXEC sp_rename 'T_RENDSZERBEALLITAS.PK_T_4025997', 'PK_RendszerBeallitas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026626') BEGIN 
  EXEC sp_rename 'T_TANULOESLADATOK.PK_T_4026626', 'PK_TanuloESLAdatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028384') BEGIN 
  EXEC sp_rename 'T_KKSZAKTIPUS.PK_T_4028384', 'PK_KKSzakTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028652') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUMELEMISZINT.PK_T_4028652', 'PK_DokumentumElemiSzint';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025121') BEGIN 
  EXEC sp_rename 'T_ESZKOZTIPUS.PK_T_4025121', 'PK_EszkozTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028348') BEGIN 
  EXEC sp_rename 'T_KIRKONTENERELEMSTATUSZ.PK_T_4028348', 'PK_KIRKontenerElemStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028135') BEGIN 
  EXEC sp_rename 'T_HITTANADATSZOLGALTATAS.PK_T_4028135', 'PK_HittanAdatszolgaltatas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025797') BEGIN 
  EXEC sp_rename 'T_ESEMENYZARADEKTIPUS.PK_T_4025797', 'PK_EsemenyZaradekTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028409') BEGIN 
  EXEC sp_rename 'T_KKTANARVEGZETTSEG.PK_T_4028409', 'PK_KKTanarVegzettseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025340') BEGIN 
  EXEC sp_rename 'T_VALLAS.PK_T_4025340', 'PK_Vallas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028828') BEGIN 
  EXEC sp_rename 'T_SZAMONKERESELOREJELZES.PK_T_4028828', 'PK_SzamonkeresElorejelzes';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028388') BEGIN 
  EXEC sp_rename 'T_KKTANITOMUVTERTIPUS.PK_T_4028388', 'PK_KKTanitoMuvTerTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025994') BEGIN 
  EXEC sp_rename 'T_ORATERV.PK_T_4025994', 'PK_OraTerv';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025957') BEGIN 
  EXEC sp_rename 'T_TANARIATLAGSULY.PK_T_4025957', 'PK_TanariAtlagSuly';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_22887') BEGIN 
  EXEC sp_rename 'T_CREDITCARDREPLY.PK_T_22887', 'PK_CreditCardReply';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_1257631') BEGIN 
  EXEC sp_rename 'T_ESEMENYSTATUSZ.PK_T_1257631', 'PK_EsemenyStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026342') BEGIN 
  EXEC sp_rename 'T_PEDAGOGUSSTATUSZ.PK_T_4026342', 'PK_PedagogusStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028407') BEGIN 
  EXEC sp_rename 'T_KKTANITOVEZGETTSEG.PK_T_4028407', 'PK_KKTanitoVezgettseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025120') BEGIN 
  EXEC sp_rename 'T_ESZKOZKATEGORIA.PK_T_4025120', 'PK_EszkozKategoria';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028294') BEGIN 
  EXEC sp_rename 'T_KEPESITES.PK_T_4028294', 'PK_Kepesites';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025769') BEGIN 
  EXEC sp_rename 'T_TANULOMENTESSEG.PK_T_4025769', 'PK_TanuloMentesseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2847545') BEGIN 
  EXEC sp_rename 'T_DIAKIGAZOLVANYIGENYHIBASTATU.PK_T_2847545', 'PK_DiakigazolvanyIgenyHibaStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028872') BEGIN 
  EXEC sp_rename 'T_FOGLALKOZASAMITANULO.PK_T_4028872', 'PK_FoglalkozasAmiTanulo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028428') BEGIN 
  EXEC sp_rename 'T_KKTANTARGYKATEGORIA.PK_T_4028428', 'PK_KKTantargyKategoria';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_KEPESITES_VEGZETTSEG') BEGIN 
  EXEC sp_rename 'T_KEPESITES_VEGZETTSEG.PK_T_T_KEPESITES_VEGZETTSEG', 'PK_Kepesites_Vegzettseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025191') BEGIN 
  EXEC sp_rename 'T_CSOPORTTIPUS.PK_T_4025191', 'PK_CsoportTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025991') BEGIN 
  EXEC sp_rename 'T_KIZAROCSOPORTTIPUS.PK_T_4025991', 'PK_KizaroCsoportTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_21079') BEGIN 
  EXEC sp_rename 'T_SYSTEMPARAMETER.PK_T_21079', 'PK_SystemParameter';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_1029458') BEGIN 
  EXEC sp_rename 'T_TRANSACTIONSTATUS.PK_T_1029458', 'PK_TransactionStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028412') BEGIN 
  EXEC sp_rename 'T_KKTERULET.PK_T_4028412', 'PK_KKTerulet';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026339') BEGIN 
  EXEC sp_rename 'T_KRETATIPUS.PK_T_4026339', 'PK_KretaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025752') BEGIN 
  EXEC sp_rename 'T_NAPLOELLENORZES.PK_T_4025752', 'PK_NaploEllenorzes';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028171') BEGIN 
  EXEC sp_rename 'T_KOZMUSZAMLA.PK_T_4028171', 'PK_KozmuSzamla';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028394') BEGIN 
  EXEC sp_rename 'T_KKVEGZETTSEGTIPUS.PK_T_4028394', 'PK_KKVegzettsegTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2846546') BEGIN 
  EXEC sp_rename 'T_DIAKIGAZOLVANYIGENYTIPUS.PK_T_2846546', 'PK_DiakigazolvanyIgenyTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_8214') BEGIN 
  EXEC sp_rename 'T_PAYMENTTITLE.PK_T_8214', 'PK_PaymentTitle';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028083') BEGIN 
  EXEC sp_rename 'T_DICTIONARYTYPE.PK_T_4028083', 'PK_DictionaryType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027915') BEGIN 
  EXEC sp_rename 'T_ERTEKELESMONDATBANK.PK_T_4027915', 'PK_ErtekelesMondatbank';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025962') BEGIN 
  EXEC sp_rename 'T_FELHASZNALOERTESITESBEALLITA.PK_T_4025962', 'PK_FelhasznaloErtesitesBeallitasok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_990847') BEGIN 
  EXEC sp_rename 'T_SCSTUDENTTEMPORARYCARD.PK_T_990847', 'PK_SCStudentTemporaryCard';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026335') BEGIN 
  EXEC sp_rename 'T_TANTARGYNEVHEZKATEGORIA.PK_T_4026335', 'PK_TantargyNevhezKategoria';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027362') BEGIN 
  EXEC sp_rename 'T_FELVETELSTATUSZATIPUS.PK_T_4027362', 'PK_FelvetelStatuszaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027715') BEGIN 
  EXEC sp_rename 'T_MUKODESIHELYADATSZOLGALTATAS.PK_T_4027715', 'PK_MukodesiHelyAdatszolgaltatas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025746') BEGIN 
  EXEC sp_rename 'T_IGAZOLAS.PK_T_4025746', 'PK_Igazolas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2761702') BEGIN 
  EXEC sp_rename 'T_IMPOSITIONIMPOSITIONGROUP.PK_T_2761702', 'PK_ImpositionImpositionGroup';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025096') BEGIN 
  EXEC sp_rename 'T_INGYENESTANKONYVELLATAS.PK_T_4025096', 'PK_IngyenesTankonyvEllatas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028492') BEGIN 
  EXEC sp_rename 'T_DIAKOLIMPIA.PK_T_4028492', 'PK_Diakolimpia';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026010') BEGIN 
  EXEC sp_rename 'T_FELADATELLATASIHELY.PK_T_4026010', 'PK_FeladatEllatasiHely';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028354') BEGIN 
  EXEC sp_rename 'T_MOBILDBINFO.PK_T_4028354', 'PK_MobilDbInfo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_990792') BEGIN 
  EXEC sp_rename 'T_SCAPPLICATIONFORMBATCH.PK_T_990792', 'PK_SCApplicationFormBatch';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027396') BEGIN 
  EXEC sp_rename 'T_TAGOZATTIPUS.PK_T_4027396', 'PK_TagozatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026294') BEGIN 
  EXEC sp_rename 'T_NAPTARIHET.PK_T_4026294', 'PK_NaptariHet';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029030') BEGIN 
  EXEC sp_rename 'T_SNITANULONEVELESIFORMATIPUS.PK_T_4029030', 'PK_SniTanuloNevelesiFormaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_TANULO_TANULOESEMENY') BEGIN 
  EXEC sp_rename 'T_TANULO_TANULOESEMENY.PK_T_T_TANULO_TANULOESEMENY', 'PK_Tanulo_TanuloEsemeny';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025098') BEGIN 
  EXEC sp_rename 'T_ESZKOZ.PK_T_4025098', 'PK_Eszkoz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_21038') BEGIN 
  EXEC sp_rename 'T_DICTIONARYITEMBASE.PK_T_21038', 'PK_DictionaryItemBase';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025728') BEGIN 
  EXEC sp_rename 'T_ORALATOGATAS.PK_T_4025728', 'PK_Oralatogatas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2740819') BEGIN 
  EXEC sp_rename 'T_SYSTEMPARAMETERTYPE.PK_T_2740819', 'PK_SystemParameterType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025093') BEGIN 
  EXEC sp_rename 'T_TEREMTIPUS.PK_T_4025093', 'PK_TeremTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025422') BEGIN 
  EXEC sp_rename 'T_FOGLALKOZAS.PK_T_4025422', 'PK_Foglalkozas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025169') BEGIN 
  EXEC sp_rename 'T_GONDVISELO.PK_T_4025169', 'PK_Gondviselo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025940') BEGIN 
  EXEC sp_rename 'T_TANARITANTARGY.PK_T_4025940', 'PK_TanariTantargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_990791') BEGIN 
  EXEC sp_rename 'T_DIAKIGAZOLVANYIGENYLES.PK_T_990791', 'PK_DiakigazolvanyIgenyles';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027609') BEGIN 
  EXEC sp_rename 'T_ERETTSEGIEREDMENY.PK_T_4027609', 'PK_ErettsegiEredmeny';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025293') BEGIN 
  EXEC sp_rename 'T_TANTERVIJELLEG.PK_T_4025293', 'PK_TanterviJelleg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_OSZTALYCSOPORT_TANULOES') BEGIN 
  EXEC sp_rename 'T_OSZTALYCSOPORT_TANULOESEMENY.PK_T_T_OSZTALYCSOPORT_TANULOES', 'PK_OsztalyCsoport_TanuloEsemeny';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025405') BEGIN 
  EXEC sp_rename 'T_EVFOLYAMTIPUS.PK_T_4025405', 'PK_EvfolyamTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2656864') BEGIN 
  EXEC sp_rename 'T_ONLINEUSER.PK_T_2656864', 'PK_OnlineUser';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025092') BEGIN 
  EXEC sp_rename 'T_MAGANTANULOSAGOKA.PK_T_4025092', 'PK_MagantanulosagOka';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027619') BEGIN 
  EXEC sp_rename 'T_ERETTSEGISZINT.PK_T_4027619', 'PK_ErettsegiSzint';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025465') BEGIN 
  EXEC sp_rename 'T_CIMTARCSOPORT.PK_T_4025465', 'PK_CimtarCsoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_8133') BEGIN 
  EXEC sp_rename 'T_TRANSACTIONANALYSISFILELINE.PK_T_8133', 'PK_TransactionAnalysisFileLine';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028806') BEGIN 
  EXEC sp_rename 'T_SAPTAVOLLET.PK_T_4028806', 'PK_SAPTavollet';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025928') BEGIN 
  EXEC sp_rename 'T_ERTESITESGENERALASTORTENET.PK_T_4025928', 'PK_ErtesitesGeneralasTortenet';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027598') BEGIN 
  EXEC sp_rename 'T_ERETTSEGITANTARGY.PK_T_4027598', 'PK_ErettsegiTantargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_8935') BEGIN 
  EXEC sp_rename 'T_FELHASZNALO.PK_T_8935', 'PK_Felhasznalo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025698') BEGIN 
  EXEC sp_rename 'T_ESEMENYTIPUS.PK_T_4025698', 'PK_EsemenyTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_990790') BEGIN 
  EXEC sp_rename 'T_SCSTICKER.PK_T_990790', 'PK_SCSticker';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028098') BEGIN 
  EXEC sp_rename 'T_ELEARNING.PK_T_4028098', 'PK_eLearning';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025439') BEGIN 
  EXEC sp_rename 'T_NAPTIPUS.PK_T_4025439', 'PK_NapTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027599') BEGIN 
  EXEC sp_rename 'T_ERETTSEGITANTARGYADATOK.PK_T_4027599', 'PK_ErettsegiTantargyAdatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025279') BEGIN 
  EXEC sp_rename 'T_TESTNEVELESTIPUS.PK_T_4025279', 'PK_TestnevelesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025721') BEGIN 
  EXEC sp_rename 'T_MAGATARTASERTEKELESTIPUS.PK_T_4025721', 'PK_MagatartasErtekelesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2612249') BEGIN 
  EXEC sp_rename 'T_LOGINLINKS.PK_T_2612249', 'PK_LoginLinks';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025084') BEGIN 
  EXEC sp_rename 'T_SERVERSTATISTICS.PK_T_4025084', 'PK_ServerStatistics';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025462') BEGIN 
  EXEC sp_rename 'T_CIMTAR.PK_T_4025462', 'PK_Cimtar';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028050') BEGIN 
  EXEC sp_rename 'T_TANULOERTEKELESLATTAMOZAS.PK_T_4028050', 'PK_TanuloErtekelesLattamozas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027618') BEGIN 
  EXEC sp_rename 'T_ERETTSEGITIPUS.PK_T_4027618', 'PK_ErettsegiTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_8130') BEGIN 
  EXEC sp_rename 'T_TRANSACTIONANALYSISFILE.PK_T_8130', 'PK_TransactionAnalysisFile';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_15468') BEGIN 
  EXEC sp_rename 'T_FORMTYPE.PK_T_15468', 'PK_FormType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028894') BEGIN 
  EXEC sp_rename 'T_ELEARNINGFELHASZNALO.PK_T_4028894', 'PK_ElearningFelhasznalo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028048') BEGIN 
  EXEC sp_rename 'T_TANULOESEMENYLATTAMOZAS.PK_T_4028048', 'PK_TanuloEsemenyLattamozas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028916') BEGIN 
  EXEC sp_rename 'T_DASHBOARDUZENETFELHASZNALO.PK_T_4028916', 'PK_DashboardUzenetFelhasznalo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026257') BEGIN 
  EXEC sp_rename 'T_TELEPULES.PK_T_4026257', 'PK_Telepules';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025278') BEGIN 
  EXEC sp_rename 'T_ESZKOZJELLEG.PK_T_4025278', 'PK_EszkozJelleg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028046') BEGIN 
  EXEC sp_rename 'T_TANULOMULASZTASLATTAMOZAS.PK_T_4028046', 'PK_TanuloMulasztasLattamozas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025456') BEGIN 
  EXEC sp_rename 'T_CSENGETESIREND.PK_T_4025456', 'PK_CsengetesiRend';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_990789') BEGIN 
  EXEC sp_rename 'T_SCINSET.PK_T_990789', 'PK_SCInset';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_8108') BEGIN 
  EXEC sp_rename 'T_IMPOSITION.PK_T_8108', 'PK_Imposition';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025922') BEGIN 
  EXEC sp_rename 'T_GLOBALISBEALLITASOK.PK_T_4025922', 'PK_GlobalisBeallitasok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028305') BEGIN 
  EXEC sp_rename 'T_GIMNAZIUMIEVFOLYAMTIPUS.PK_T_4028305', 'PK_GimnaziumiEvfolyamTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2610348') BEGIN 
  EXEC sp_rename 'T_LOGINNEWS.PK_T_2610348', 'PK_LoginNews';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028112') BEGIN 
  EXEC sp_rename 'T_HAZIFELADATOK.PK_T_4028112', 'PK_HaziFeladatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027558') BEGIN 
  EXEC sp_rename 'T_TOVABBIMUNKAUGYIADATOK.PK_T_4027558', 'PK_TovabbiMunkaugyiAdatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025277') BEGIN 
  EXEC sp_rename 'T_CSOPORT.PK_T_4025277', 'PK_Csoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025717') BEGIN 
  EXEC sp_rename 'T_SZORGALOMERTEKELESTIPUS.PK_T_4025717', 'PK_SzorgalomErtekelesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026172') BEGIN 
  EXEC sp_rename 'T_TANULOKOZOSSEGISZOLGALAT.PK_T_4026172', 'PK_TanuloKozossegiSzolgalat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_15404') BEGIN 
  EXEC sp_rename 'T_FORMS.PK_T_15404', 'PK_Forms';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_JOGOSULTFELHASZNALOK_HO') BEGIN 
  EXEC sp_rename 'T_JOGOSULTFELHASZNALOK_HOZZARE.PK_T_T_JOGOSULTFELHASZNALOK_HO', 'PK_JogosultFelhasznalok_HozzarendeltDoksik';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025449') BEGIN 
  EXEC sp_rename 'T_HETNAPJATIPUS.PK_T_4025449', 'PK_HetNapjaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028513') BEGIN 
  EXEC sp_rename 'T_JELSZOMODOSITASLINK.PK_T_4028513', 'PK_JelszoModositasLink';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_990788') BEGIN 
  EXEC sp_rename 'T_SCTEMPORARYCARD.PK_T_990788', 'PK_SCTemporaryCard';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027428') BEGIN 
  EXEC sp_rename 'T_ELSODLEGESIKTESZKOZ.PK_T_4027428', 'PK_ElsodlegesIKTEszkoz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026694') BEGIN 
  EXEC sp_rename 'T_ADATSZOLGALTATASENAPLO.PK_T_4026694', 'PK_AdatszolgaltatasENaplo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025906') BEGIN 
  EXEC sp_rename 'T_JOGYAKORLAT.PK_T_4025906', 'PK_Jogyakorlat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025022') BEGIN 
  EXEC sp_rename 'T_FELHASZNALOBELEPES.PK_T_4025022', 'PK_FelhasznaloBelepes';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_3195828') BEGIN 
  EXEC sp_rename 'T_FELHASZNALOBELEPESTORTENET.PK_T_3195828', 'PK_FelhasznaloBelepesTortenet';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026212') BEGIN 
  EXEC sp_rename 'T_IKTATOTTDOKUMENTUMOK.PK_T_4026212', 'PK_IktatottDokumentumok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_JOGOSULTGONDVISELOK_HOZ') BEGIN 
  EXEC sp_rename 'T_JOGOSULTGONDVISELOK_HOZZAREN.PK_T_T_JOGOSULTGONDVISELOK_HOZ', 'PK_JogosultGondviselok_HozzarendeltDoksik';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028544') BEGIN 
  EXEC sp_rename 'T_IKTATOTTDOKUMENTUM.PK_T_4028544', 'PK_IktatottDokumentum';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028271') BEGIN 
  EXEC sp_rename 'T_TANULOHAZIFELADAT.PK_T_4028271', 'PK_TanuloHaziFeladat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025276') BEGIN 
  EXEC sp_rename 'T_ESZKOZCEL.PK_T_4025276', 'PK_EszkozCel';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_JOGOSULTSAG_FELHASZNALO') BEGIN 
  EXEC sp_rename 'T_JOGOSULTSAG_FELHASZNALO.PK_T_T_JOGOSULTSAG_FELHASZNALO', 'PK_Jogosultsag_Felhasznalo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2491312') BEGIN 
  EXEC sp_rename 'T_OTPJELENTESSTATUS.PK_T_2491312', 'PK_OTPJelentesStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028803') BEGIN 
  EXEC sp_rename 'T_MUVESZETIAG.PK_T_4028803', 'PK_MuveszetiAg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027634') BEGIN 
  EXEC sp_rename 'T_VEZETOIORASZAMOKTIPUS.PK_T_4027634', 'PK_VezetoiOraszamokTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4024976') BEGIN 
  EXEC sp_rename 'T_LOG.PK_T_4024976', 'PK_Log';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028363') BEGIN 
  EXEC sp_rename 'T_OSSZEFUGGOSZAKGYAK.PK_T_4028363', 'PK_OsszefuggoSzakGyak';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027429') BEGIN 
  EXEC sp_rename 'T_IKTESZKOZHASZNALATMOD.PK_T_4027429', 'PK_IKTEszkozhasznalatMod';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025901') BEGIN 
  EXEC sp_rename 'T_EVENTTYPE.PK_T_4025901', 'PK_EventType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_EVFOLYAMTIPUS_OKTATASIN') BEGIN 
  EXEC sp_rename 'T_EVFOLYAMTIPUS_OKTATASINEVELE.PK_T_T_EVFOLYAMTIPUS_OKTATASIN', 'PK_EvfolyamTipus_OktatasiNevelesiFeladat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_14298') BEGIN 
  EXEC sp_rename 'T_IMPOSITIONSHAREDRULES.PK_T_14298', 'PK_ImpositionSharedRules';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_990787') BEGIN 
  EXEC sp_rename 'T_SCCARD.PK_T_990787', 'PK_SCCard';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028802') BEGIN 
  EXEC sp_rename 'T_ZENEMUVESZETIAGTIPUS.PK_T_4028802', 'PK_ZenemuveszetiAgTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026191') BEGIN 
  EXEC sp_rename 'T_JOGOSULTSAG.PK_T_4026191', 'PK_Jogosultsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025178') BEGIN 
  EXEC sp_rename 'T_TANULO.PK_T_4025178', 'PK_Tanulo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028115') BEGIN 
  EXEC sp_rename 'T_HITTANTIPUS.PK_T_4028115', 'PK_HittanTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_TEREM_TANARITANTARGY') BEGIN 
  EXEC sp_rename 'T_TEREM_TANARITANTARGY.PK_T_T_TEREM_TANARITANTARGY', 'PK_Terem_TanariTantargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025246') BEGIN 
  EXEC sp_rename 'T_MERTEKEGYSEGTIPUS.PK_T_4025246', 'PK_MertekegysegTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025530') BEGIN 
  EXEC sp_rename 'T_ORARENDIORA.PK_T_4025530', 'PK_OrarendiOra';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2489006') BEGIN 
  EXEC sp_rename 'T_OTPJELENTESEK.PK_T_2489006', 'PK_OTPJelentesek';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4024983') BEGIN 
  EXEC sp_rename 'T_LOGEVENTTYPE.PK_T_4024983', 'PK_LogEventType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_TEREM_FOGLALKOZAS') BEGIN 
  EXEC sp_rename 'T_TEREM_FOGLALKOZAS.PK_T_T_TEREM_FOGLALKOZAS', 'PK_Terem_Foglalkozas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027189') BEGIN 
  EXEC sp_rename 'T_EPENZTARCABIZONYLAT.PK_T_4027189', 'PK_EPenztarcaBizonylat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026286') BEGIN 
  EXEC sp_rename 'T_HELYETTESITESIIDOSZAK.PK_T_4026286', 'PK_HelyettesitesiIdoszak';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028767') BEGIN 
  EXEC sp_rename 'T_FELTOLTOTTFAJL.PK_T_4028767', 'PK_FeltoltottFajl';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026116') BEGIN 
  EXEC sp_rename 'T_MUNKAUGYIADATOK.PK_T_4026116', 'PK_MunkaugyiAdatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027422') BEGIN 
  EXEC sp_rename 'T_IKTKOMPETENCIASZINT.PK_T_4027422', 'PK_IKTKompetenciaSzint';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026189') BEGIN 
  EXEC sp_rename 'T_SZEREPKORTIPUS.PK_T_4026189', 'PK_SzerepkorTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_CSATOLTFELHASZNALOK_CSA') BEGIN 
  EXEC sp_rename 'T_CSATOLTFELHASZNALOK_CSATOLTJ.PK_T_T_CSATOLTFELHASZNALOK_CSA', 'PK_CsatoltFelhasznalok_CsatoltJogyakorlatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027171') BEGIN 
  EXEC sp_rename 'T_EPENZTARCAPARAMETEREK.PK_T_4027171', 'PK_EPenztarcaParameterek';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028200') BEGIN 
  EXEC sp_rename 'T_LICENCE.PK_T_4028200', 'PK_Licence';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_14044') BEGIN 
  EXEC sp_rename 'T_IMPOSITIONGROUP.PK_T_14044', 'PK_ImpositionGroup';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025440') BEGIN 
  EXEC sp_rename 'T_HETIRENDTIPUS.PK_T_4025440', 'PK_HetiRendTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025696') BEGIN 
  EXEC sp_rename 'T_IGAZOLASTIPUS.PK_T_4025696', 'PK_IgazolasTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_AMIFOTARGY_AMIALTARGY') BEGIN 
  EXEC sp_rename 'T_AMIFOTARGY_AMIALTARGY.PK_T_T_AMIFOTARGY_AMIALTARGY', 'PK_AMIFotargy_AMIAltargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_TERMEK_JOGYAKORLATOK') BEGIN 
  EXEC sp_rename 'T_TERMEK_JOGYAKORLATOK.PK_T_T_TERMEK_JOGYAKORLATOK', 'PK_Termek_Jogyakorlatok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028204') BEGIN 
  EXEC sp_rename 'T_LICENCEFUNKCIOKTIPUS.PK_T_4028204', 'PK_LicenceFunkciokTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2488606') BEGIN 
  EXEC sp_rename 'T_OTPJELENTESTIPUS.PK_T_2488606', 'PK_OTPJelentesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027424') BEGIN 
  EXEC sp_rename 'T_PEDAGOGUSIKTADATSZOLGALTATAS.PK_T_4027424', 'PK_PedagogusIKTAdatszolgaltatas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025893') BEGIN 
  EXEC sp_rename 'T_SCHEDULERTRIGGERS.PK_T_4025893', 'PK_SchedulerTriggers';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029053') BEGIN 
  EXEC sp_rename 'T_AMITANTARGYSABLON.PK_T_4029053', 'PK_AMITantargySablon';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_RESZTVEVOK_TEVEKENYSEGE') BEGIN 
  EXEC sp_rename 'T_RESZTVEVOK_TEVEKENYSEGEK.PK_T_T_RESZTVEVOK_TEVEKENYSEGE', 'PK_Resztvevok_Tevekenysegek';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027180') BEGIN 
  EXEC sp_rename 'T_EPENZTARCATETELSTATUSZ.PK_T_4027180', 'PK_EPenztarcaTetelStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028735') BEGIN 
  EXEC sp_rename 'T_TEREMELERHETOSEG.PK_T_4028735', 'PK_TeremElerhetoseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028756') BEGIN 
  EXEC sp_rename 'T_TAVOLLETJELENTO.PK_T_4028756', 'PK_TavolletJelento';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_283797') BEGIN 
  EXEC sp_rename 'T_FEETYPE.PK_T_283797', 'PK_FeeType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029044') BEGIN 
  EXEC sp_rename 'T_AMITTFSABLON.PK_T_4029044', 'PK_AMITTFSablon';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_NAPTARINAP_TEVEKENYSEG') BEGIN 
  EXEC sp_rename 'T_NAPTARINAP_TEVEKENYSEG.PK_T_T_NAPTARINAP_TEVEKENYSEG', 'PK_NaptariNap_Tevekenyseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026951') BEGIN 
  EXEC sp_rename 'T_FORRAS.PK_T_4026951', 'PK_Forras';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025198') BEGIN 
  EXEC sp_rename 'T_FENNTARTOTIPUS.PK_T_4025198', 'PK_FenntartoTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026353') BEGIN 
  EXEC sp_rename 'T_BESOROLASIFOKOZATTIPUS.PK_T_4026353', 'PK_BesorolasiFokozatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025679') BEGIN 
  EXEC sp_rename 'T_CSENGETESIRENDORA.PK_T_4025679', 'PK_CsengetesiRendOra';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2425119') BEGIN 
  EXEC sp_rename 'T_KOZTERULETJELLEG.PK_T_2425119', 'PK_KozteruletJelleg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027504') BEGIN 
  EXEC sp_rename 'T_MUKODESIHELYTIPUS.PK_T_4027504', 'PK_MukodesiHelyTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4024974') BEGIN 
  EXEC sp_rename 'T_LOGLEVELTYPE.PK_T_4024974', 'PK_LogLevelType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_TAVOLLETJELENTO_IKTATOT') BEGIN 
  EXEC sp_rename 'T_TAVOLLETJELENTO_IKTATOTTDOKU.PK_T_T_TAVOLLETJELENTO_IKTATOT', 'PK_TavolletJelento_IktatottDokumentum';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027423') BEGIN 
  EXEC sp_rename 'T_WIFIELERES.PK_T_4027423', 'PK_WiFiEleres';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025888') BEGIN 
  EXEC sp_rename 'T_SCHEDULERCONTEXTS.PK_T_4025888', 'PK_SchedulerContexts';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_13310') BEGIN 
  EXEC sp_rename 'T_FINANCIALCODE.PK_T_13310', 'PK_FinancialCode';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_228247') BEGIN 
  EXEC sp_rename 'T_PAYMENTTITLETYPE.PK_T_228247', 'PK_PaymentTitleType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026162') BEGIN 
  EXEC sp_rename 'T_PARTFILLSTATUS.PK_T_4026162', 'PK_PartfillStatus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026953') BEGIN 
  EXEC sp_rename 'T_HIBAJEGYSTATUSZ.PK_T_4026953', 'PK_HibajegyStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025425') BEGIN 
  EXEC sp_rename 'T_FOGLALKOZASTIPUS.PK_T_4025425', 'PK_FoglalkozasTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025659') BEGIN 
  EXEC sp_rename 'T_MULASZTASTIPUS.PK_T_4025659', 'PK_MulasztasTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027192') BEGIN 
  EXEC sp_rename 'T_IDOKERET.PK_T_4027192', 'PK_Idokeret';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025885') BEGIN 
  EXEC sp_rename 'T_SCHEDULERJOBS.PK_T_4025885', 'PK_SchedulerJobs';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028537') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUMKATEGORIA.PK_T_4028537', 'PK_DokumentumKategoria';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_OSZTALYCSOPORT_TANEVREN') BEGIN 
  EXEC sp_rename 'T_OSZTALYCSOPORT_TANEVRENDJE.PK_T_T_OSZTALYCSOPORT_TANEVREN', 'PK_OsztalyCsoport_TanevRendje';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027188') BEGIN 
  EXEC sp_rename 'T_OSSZEGTULLEPESTIPUS.PK_T_4027188', 'PK_OsszegTullepesTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025122') BEGIN 
  EXEC sp_rename 'T_TEREM.PK_T_4025122', 'PK_Terem';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_42472') BEGIN 
  EXEC sp_rename 'T_EMAILTIPUS.PK_T_42472', 'PK_EmailTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026137') BEGIN 
  EXEC sp_rename 'T_RENDSZERERTESITESEK.PK_T_4026137', 'PK_RendszerErtesitesek';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_13245') BEGIN 
  EXEC sp_rename 'T_FEE.PK_T_13245', 'PK_Fee';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028287') BEGIN 
  EXEC sp_rename 'T_VEGZETTSEG.PK_T_4028287', 'PK_Vegzettseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025376') BEGIN 
  EXEC sp_rename 'T_OKTATASINEVELESIFELADAT.PK_T_4025376', 'PK_OktatasiNevelesiFeladat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028542') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUMKULCSSZO.PK_T_4028542', 'PK_DokumentumKulcsszo';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026952') BEGIN 
  EXEC sp_rename 'T_PRIORITAS.PK_T_4026952', 'PK_Prioritas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025179') BEGIN 
  EXEC sp_rename 'T_ROKONSAGIFOK.PK_T_4025179', 'PK_RokonsagiFok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029088') BEGIN 
  EXEC sp_rename 'T_ADATTISZTITASINDIKATOR.PK_T_4029088', 'PK_AdattisztitasIndikator';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2121925') BEGIN 
  EXEC sp_rename 'T_BANK.PK_T_2121925', 'PK_Bank';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028557') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUMKULCSSZOERTEK.PK_T_4028557', 'PK_DokumentumKulcsszoErtek';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_CSOPORTOK_OSZTALYOK') BEGIN 
  EXEC sp_rename 'T_CSOPORTOK_OSZTALYOK.PK_T_T_CSOPORTOK_OSZTALYOK', 'PK_Csoportok_Osztalyok';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028108') BEGIN 
  EXEC sp_rename 'T_VEGZETTSEGTIPUS.PK_T_4028108', 'PK_VegzettsegTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027420') BEGIN 
  EXEC sp_rename 'T_ENAPLOHASZNALAT.PK_T_4027420', 'PK_ENaploHasznalat';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025868') BEGIN 
  EXEC sp_rename 'T_ERTESITES.PK_T_4025868', 'PK_Ertesites';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029092') BEGIN 
  EXEC sp_rename 'T_ADATTISZTITASSTATISZTIKA.PK_T_4029092', 'PK_AdattisztitasStatisztika';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025294') BEGIN 
  EXEC sp_rename 'T_OSZTALY.PK_T_4025294', 'PK_Osztaly';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028927') BEGIN 
  EXEC sp_rename 'T_BESZERZESIIGENYSATUSZ.PK_T_4028927', 'PK_BeszerzesiIgenySatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_41657') BEGIN 
  EXEC sp_rename 'T_TELEFONTIPUS.PK_T_41657', 'PK_TelefonTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028538') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUMKULCSSZOTIPUS.PK_T_4028538', 'PK_DokumentumKulcsszoTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_FELHASZNALO_SZEREPKOR') BEGIN 
  EXEC sp_rename 'T_FELHASZNALO_SZEREPKOR.PK_T_T_FELHASZNALO_SZEREPKOR', 'PK_Felhasznalo_Szerepkor';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028603') BEGIN 
  EXEC sp_rename 'T_ELEARNINGELERHETOSEG.PK_T_4028603', 'PK_ElearningElerhetoseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029099') BEGIN 
  EXEC sp_rename 'T_ARANYJANOSPROGRAMTIPUS.PK_T_4029099', 'PK_AranyJanosProgramTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028926') BEGIN 
  EXEC sp_rename 'T_MENNYISEGIEGYSEG.PK_T_4028926', 'PK_MennyisegiEgyseg';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025296') BEGIN 
  EXEC sp_rename 'T_OSZTALYCSOPORT.PK_T_4025296', 'PK_OsztalyCsoport';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025653') BEGIN 
  EXEC sp_rename 'T_ERTEKELESMOD.PK_T_4025653', 'PK_ErtekelesMod';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028540') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUMSTATUSZ.PK_T_4028540', 'PK_DokumentumStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025399') BEGIN 
  EXEC sp_rename 'T_TANTARGY.PK_T_4025399', 'PK_Tantargy';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_OTPJELENTESEK_BANKACCOU') BEGIN 
  EXEC sp_rename 'T_OTPJELENTESEK_BANKACCOUNT.PK_T_T_OTPJELENTESEK_BANKACCOU', 'PK_OTPJelentesek_BankAccount';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_13092') BEGIN 
  EXEC sp_rename 'T_SZEREPKOR.PK_T_13092', 'PK_Szerepkor';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027998') BEGIN 
  EXEC sp_rename 'T_ORARENDIORATULAJDONSAG.PK_T_4027998', 'PK_OrarendiOraTulajdonsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025148') BEGIN 
  EXEC sp_rename 'T_MUKODESIHELY.PK_T_4025148', 'PK_MukodesiHely';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_FELTOLTOTTFAJL_MEROALLA') BEGIN 
  EXEC sp_rename 'T_FELTOLTOTTFAJL_MEROALLAS.PK_T_T_FELTOLTOTTFAJL_MEROALLA', 'PK_FeltoltottFajl_Meroallas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2030094') BEGIN 
  EXEC sp_rename 'T_USERPROFILE.PK_T_2030094', 'PK_UserProfile';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028541') BEGIN 
  EXEC sp_rename 'T_DOKUMENTUMTIPUS.PK_T_4028541', 'PK_DokumentumTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_T_IMPOSITIONSHAREDRULES_P') BEGIN 
  EXEC sp_rename 'T_IMPOSITIONSHAREDRULES_PAYMEN.PK_T_T_IMPOSITIONSHAREDRULES_P', 'PK_ImpositionSharedRules_PaymentTitle';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_38743') BEGIN 
  EXEC sp_rename 'T_PAYINGTYPE.PK_T_38743', 'PK_PayingType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028166') BEGIN 
  EXEC sp_rename 'T_KOZMUSZAMLATIPUS.PK_T_4028166', 'PK_KozmuSzamlaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025406') BEGIN 
  EXEC sp_rename 'T_TARGYKATEGORIATIPUS.PK_T_4025406', 'PK_TargyKategoriaTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025866') BEGIN 
  EXEC sp_rename 'T_GONDVISELOERTESITES.PK_T_4025866', 'PK_GondviseloErtesites';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4029104') BEGIN 
  EXEC sp_rename 'T_LEPELOADAS.PK_T_4029104', 'PK_LepEloadas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025652') BEGIN 
  EXEC sp_rename 'T_OSZTALYZATTIPUS.PK_T_4025652', 'PK_OsztalyzatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4025441') BEGIN 
  EXEC sp_rename 'T_TANEVRENDJE.PK_T_4025441', 'PK_TanevRendje';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028184') BEGIN 
  EXEC sp_rename 'T_MEROALLAS.PK_T_4028184', 'PK_Meroallas';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_11671') BEGIN 
  EXEC sp_rename 'T_STUDENTCARDTYPE.PK_T_11671', 'PK_StudentCardType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028962') BEGIN 
  EXEC sp_rename 'T_BESZERZESISZALLITOTORZS.PK_T_4028962', 'PK_BeszerzesiSzallitotorzs';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4026109') BEGIN 
  EXEC sp_rename 'T_SYSTEMSETTINGSCONTROLTYPE.PK_T_4026109', 'PK_SystemSettingsControlType';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027549') BEGIN 
  EXEC sp_rename 'T_AGAZATTIPUS.PK_T_4027549', 'PK_AgazatTipus';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027954') BEGIN 
  EXEC sp_rename 'T_TANITASIORATULAJDONSAG.PK_T_4027954', 'PK_TanitasiOraTulajdonsag';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4027838') BEGIN 
  EXEC sp_rename 'T_OGEXPORTORAREND.PK_T_4027838', 'PK_ogExportOrarend';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_2026497') BEGIN 
  EXEC sp_rename 'T_DIAKIGAZOLVANYIGENYSTATUSZ.PK_T_2026497', 'PK_DiakigazolvanyIgenyStatusz';
END
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'PK_T_4028167') BEGIN 
  EXEC sp_rename 'T_MEROHELY.PK_T_4028167', 'PK_Merohely';
END
GO