﻿DECLARE intezmenytanevekCursor CURSOR LOCAL FOR 
	SELECT C_INTEZMENYID, C_TANEVID
		FROM T_INTEZMENYADATOK

DECLARE @intezmenyId int, @tanevId int

OPEN intezmenytanevekCursor  
FETCH NEXT FROM intezmenytanevekCursor INTO @intezmenyId, @tanevId

WHILE @@FETCH_STATUS = 0 
BEGIN  
	PRINT 'INTÉZMÉNY ID: ' + CAST(@intezmenyId AS NVARCHAR(10)) + ', TANÉV ID: ' + CAST(@tanevId AS NVARCHAR(10))
    EXEC sp_Global_CreateDictionaryItems @IntezmenyId = @intezmenyId, @TanevId = @tanevId

	FETCH NEXT FROM intezmenytanevekCursor INTO @intezmenyId, @tanevId
END  

CLOSE intezmenytanevekCursor  
DEALLOCATE intezmenytanevekCursor

--------------------------------------
GO

UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 72, C_ORDER = 2 WHERE ID = 7570
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 73 WHERE ID = 6555
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 74 WHERE ID = 6556
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 75 WHERE ID = 6558
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 76 WHERE ID = 6559
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 77 WHERE ID = 6560
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 78 WHERE ID = 957
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 79 WHERE ID = 958
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 80 WHERE ID = 959
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 81 WHERE ID = 960
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 82 WHERE ID = 961
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 83 WHERE ID = 962
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 84 WHERE ID = 963
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 85 WHERE ID = 964
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 86 WHERE ID = 965
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 87 WHERE ID = 966
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 88 WHERE ID = 6561
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 89 WHERE ID = 6562
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 90 WHERE ID = 6563
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 91 WHERE ID = 6564
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 92 WHERE ID = 967
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 93 WHERE ID = 968
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 94 WHERE ID = 969
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 95 WHERE ID = 970
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 96 WHERE ID = 971
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 97 WHERE ID = 5444
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 98 WHERE ID = 6835
UPDATE T_DICTIONARYITEMBASE SET C_VALUE = 99 WHERE ID = 6961

UPDATE T_DICTIONARYITEMBASE SET C_NAME = N'Alapfokú művészetoktatás', C_NAME_1 = N'Alapfokú művészetoktatás' WHERE ID = 7555

GO
