﻿-- dbversion
INSERT INTO [dbo].[T_DBVERSION]
           ([C_VERSION]
           ,[C_UPDATEDATE]
           ,[C_SUBVERSION]
           ,[C_PATCH]
           ,[SERIAL]
           ,[LASTCHANGED]
           ,[CREATED]
           ,[MODIFIER]
           ,[CREATOR])
     VALUES
           ('543'
           ,getdate()
           ,1
           ,null
           ,1
           ,getdate()
           ,getdate()
           ,null
           ,null)
GO

SET IDENTITY_INSERT [dbo].[T_LOGEVENTTYPE] ON 

GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (0, N'GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (1000, N'SYSTEM_EXCEPTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (1001, N'CRITICAL_EXCEPTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (1002, N'DATAPROVIDER_EXCEPTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (1003, N'SCHEDULER_EXCEPTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (1004, N'PROGRAMMABILITY_EXCEPTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (2000, N'DB_TABLESPACE_WARNING', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (3000, N'LICENSE_SUCCESS', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (3001, N'LICENSE_ERROR', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (3002, N'LICENSE_WARNING', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (4000, N'UPDATE_INFO', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (4001, N'UPDATE_ERROR', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (5000, N'WEB_ERROR_REPORT', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10001, N'FRAMEWORK_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10002, N'FRAMEWORK_CONFIG_INVALIDCONFIG', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10003, N'FRAMEWORK_DB_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10004, N'FRAMEWORK_DB_SERVERNOTFOUND', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10005, N'FRAMEWORK_SESSION_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10006, N'FRAMEWORK_SESSION_CANNOTCREATE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10007, N'FRAMEWORK_SESSION_INVALID', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10008, N'FRAMEWORK_SESSION_CANNOTSTART', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10009, N'FRAMEWORK_SESSION_CANNOTSTOP', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10010, N'FRAMEWORK_USERCONTEXT_CANNOTCREATE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10011, N'FRAMEWORK_USERCONTEXT_INVALID', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10012, N'FRAMEWORK_SERVERSTART', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10013, N'FRAMEWORK_SERVERSTOP', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10014, N'FRAMEWORK_CONFIGLOADED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10015, N'FRAMEWORK_SESSIONCREATED', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10016, N'FRAMEWORK_SESSIONDELETED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10017, N'FRAMEWORK_SESSIONEXPIRED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10018, N'FRAMEWORK_EXCEPTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10019, N'FRAMEWORK_ENTITYHISTORYFAILED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10020, N'FRAMEWORK_BEGINTRANSACTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10021, N'FRAMEWORK_COMMITTRANSACTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10022, N'FRAMEWORK_ROLLBACKTRANSACTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10023, N'FRAMEWORK_SERVERLOAD', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10024, N'FRAMEWORK_SESSIONCLEANUP', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10025, N'FRAMEWORK_LOGFAILED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10026, N'FRAMEWORK_DATAINTEGRITYVIOLATION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10027, N'FRAMEWORK_NOTINTRANSACTION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10028, N'FRAMEWORK_SESSIONLIMITREACHED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10029, N'FRAMEWORK_DB_FOREIGNKEYVIOLATION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10030, N'FRAMEWORK_DB_UNIQUEKEYVIOLATION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10031, N'FRAMEWORK_SERVER_STOPPING', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10032, N'FRAMEWORK_LICENSE_ERROR', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10033, N'FRAMEWORK_USER_LOGIN', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10034, N'FRAMEWORK_USER_SETROLE', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (10035, N'FRAMEWORK_DB_DEADLOCK', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (14001, N'MOBILESERVICEERROR', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (20001, N'ACTION_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (20002, N'ACTION_INVALIDREQUEST', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (20003, N'ACTION_INCOMPLETED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (20004, N'ACTION_NOTFOUND', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (20005, N'ACTION_EXECUTE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (20006, N'ACTION_INVALID_FIELD_LENGTH', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (21000, N'WindowsServiceExecute', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (21001, N'WindowsServiceError', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30001, N'ENTITY_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30002, N'ENTITY_NOTFOUND', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30003, N'ENTITY_INVALIDDATA', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30004, N'ENTITY_INVALIDSTATE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30005, N'ENTITY_LOAD', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30006, N'ENTITY_INSERT', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30007, N'ENTITY_UPDATE', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30008, N'ENTITY_DELETE', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30009, N'ENTITY_MODIFY', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30010, N'ENTITY_EXPIREDVERSION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30011, N'ENTITY_READONLYATTRIBUTE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30012, N'ENTITY_DELETEFAILED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (30013, N'ENTITY_READONLY', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40001, N'SECURITY_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40002, N'SECURITY_WRITE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40003, N'SECURITY_INVALIDOPERATION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40004, N'SECURITY_LOGINFAILED', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40005, N'SECURITY_INVALIDROLE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40006, N'SECURITY_COLUMNVIOLATION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40007, N'SECURITY_LOGINREQUIREMENTFAILED', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40008, N'SECURITY_INVALIDSUBEMPLOYEEID', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40009, N'SECURITY_INVALIDPRIORITY', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40010, N'SECURITY_ACTIVEDIRECTORY', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (40011, N'SECURITY_ACTIVEDIRECTORY_LOGINFAILED', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (50001, N'SQL_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (50002, N'SQL_EXECUTED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (60000, N'NEPTUN_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65000, N'POSZEIDON_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65001, N'TANUSITOK_NOTHITELESITVEBYUSER', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65002, N'TANUSITOK_ERVENYTELENTANUSITASVISSZAVONASA', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65003, N'IKTATOKONYV_UTOLSOFOSZAMMODOSITASIKISERLET', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65004, N'FAJLSZERVER_REQUESTEDFILESERVERINACTIVE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65005, N'ELEKTRONIKUSPELDANY_TAROLOMODOSITAS', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65006, N'SZTORNOZASIZARADEK_SZTORNOCONDITIONCHECKFAILED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65007, N'UGYIRATBANPELDANY_INVALIDOPERATION', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65008, N'SZETSZERELES_CONDITIONCHECKFAILED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65009, N'LEZARAS_CONDITIONCHECKFAILED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65010, N'NEPTUN_CONNECTOR_EVENT', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65011, N'NEPTUN_CONNECTOR_ERROR', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65012, N'MOREQ2_IMPORT', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65013, N'MOREQ2', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65014, N'ENTITYHISTORYMODE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (65015, N'SCANNER_ERROR ', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (70000, N'FDL_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (70001, N'FDL_BAD_FILTER', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (80000, N'CUSTOM_HANDLABLE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (80001, N'DEVELOPER_DEFINIED', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (81000, N'SMS_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (82000, N'EMAIL_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (83000, N'USER_COLLAPSE', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (83001, N'USER_COLLPASE_ERROR', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (84000, N'FAJLSZERVER_GENERAL', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (85000, N'MESSAGEMANAGER_GENERAL', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90001, N'NEPTUN_RELEASE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90002, N'NEPTUN_COMPARE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90003, N'NEPTUN_SCRIPTS', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90004, N'NEPTUN_DBCHECK', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90005, N'NEPTUN_REPORTS', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90006, N'NEPTUN_PATCH', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90011, N'NEPTUN_RELEASE_ORA', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90012, N'NEPTUN_RELEASE_SQL', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90013, N'NEPTUN_RELEASE_DB2', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (90014, N'NEPTUN_LOGDW_ERROR', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (100000, N'LMS_ERROR', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (110000, N'OM_CODE_CHANGED', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (120000, N'CLIENT_GENERAL', N'F')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (130000, N'JOB_SCHEDULE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (130001, N'JOB_EXECUTE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (140000, N'MOBILESERVICEEXECUTE', N'T')
GO
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (150000, N'DIAKIGENY_KONTENER', N'T')
GO

INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (160000, N'Tanulo_KIR_Import', N'F')
INSERT [dbo].[T_LOGEVENTTYPE] ([ID], [C_DISPLAYNAME], [C_DELETABLE]) VALUES (160001, N'Tanar_KIR_Import', N'F')
GO
SET IDENTITY_INSERT [dbo].[T_LOGEVENTTYPE] OFF
SET IDENTITY_INSERT [dbo].[T_LOGLEVELTYPE] ON 

INSERT [dbo].[T_LOGLEVELTYPE] ([ID], [C_DISPLAYNAME]) VALUES (0, N'UNKNOWN')
GO
INSERT [dbo].[T_LOGLEVELTYPE] ([ID], [C_DISPLAYNAME]) VALUES (1, N'DEBUG')
GO
INSERT [dbo].[T_LOGLEVELTYPE] ([ID], [C_DISPLAYNAME]) VALUES (2, N'INFO')
GO
INSERT [dbo].[T_LOGLEVELTYPE] ([ID], [C_DISPLAYNAME]) VALUES (3, N'WARNING')
GO
INSERT [dbo].[T_LOGLEVELTYPE] ([ID], [C_DISPLAYNAME]) VALUES (4, N'ERROR')
GO
INSERT [dbo].[T_LOGLEVELTYPE] ([ID], [C_DISPLAYNAME]) VALUES (5, N'FATAL')
GO
SET IDENTITY_INSERT [dbo].[T_LOGLEVELTYPE] OFF
GO


-- Egyedi unique indexek
CREATE UNIQUE INDEX UK_TANEV_OSZTALYNEV ON T_OSZTALYCSOPORT (C_INTEZMENYID, C_TANEVID,C_NEV) WHERE TOROLT = 'F'
CREATE UNIQUE INDEX UK_TEREMNEV ON T_TEREM (C_INTEZMENYID, C_TANEVID, C_NEV, C_MUKODESIHELYID) WHERE TOROLT = 'F'
CREATE UNIQUE INDEX UK_TANULOCSOPORT ON T_TANULOCSOPORT	 (C_INTEZMENYID, C_TANEVID, C_OSZTALYCSOPORTID, C_TANULOID) WHERE C_KILEPESDATUM IS NULL AND TOROLT = 'F'

-- Egyedi indexek
CREATE NONCLUSTERED INDEX IDX_TANITASIORA_NAPTARINAPID_ORASZAM
	ON T_TANITASIORA (C_INTEZMENYID, C_TANEVID,C_NAPTARINAPID, C_ORASZAM) 
GO

CREATE NONCLUSTERED INDEX IDX_TANULOMULASZTAS_ORATANULOIID_C_TANITASIORAKID
	ON T_TANULOMULASZTAS (C_INTEZMENYID, C_TANEVID,C_ORATANULOIID, C_TANITASIORAKID) 
GO

CREATE INDEX [IDX_TANULOERTEKELES_TANULOID_TANTARGYID_ERTEKELESTIPUSA]
  ON [dbo].[T_TANULOERTEKELES] (C_INTEZMENYID, C_TANEVID,[C_TANULOID] , [C_TANTARGYID] , [C_ERTEKELESTIPUSA])

CREATE INDEX [IDX_TANITASIORA_NAPTARINAPID_TANTARGYID_OSZTALYCSOPORTID]
  ON [dbo].[T_TANITASIORA] (C_INTEZMENYID, C_TANEVID,[C_NAPTARINAPID] , [C_TANTARGYID] , [C_OSZTALYCSOPORTID])

  
CREATE INDEX IDX_TANULOCSOPORT_INTEZMENYID_TANULOID 
  ON T_TANULOCSOPORT (C_INTEZMENYID, C_TANULOID)

CREATE INDEX IDX_TANULOCSOPORT_INTEZMENYID_OSZTALYCSOPORTID 
  ON T_TANULOCSOPORT (C_INTEZMENYID, C_OSZTALYCSOPORTID)

CREATE INDEX IDX_TANULOCSOPORT_OSZTALYCSOPORTID_TANULOID 
  ON T_TANULOCSOPORT (C_OSZTALYCSOPORTID, C_TANULOID)
GO
  
-- migráláshoz szükséges dolgok

/*ADDING NNID COLUMN FOR EACH TABLE*/
DECLARE @sql nvarchar(max) = '';
SELECT  @sql += 'ALTER TABLE dbo.' +  T.TABLE_NAME + '  ADD NNID INT;' + char(13) + char(10)
FROM INFORMATION_SCHEMA.TABLES T
WHERE NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS C WHERE C.TABLE_NAME = T.TABLE_NAME AND C.COLUMN_NAME = 'NNID')
  AND T.TABLE_TYPE = 'BASE TABLE' 
  AND TABLE_SCHEMA = 'dbo';

EXEC sp_executesql @sql;  
GO

/* Felhasználó típusa: AK (alkalmazott), TN (tanuló)*/
IF COL_LENGTH ( 'T_FELHASZNALO' , 'FTIP' ) IS NULL BEGIN
  ALTER TABLE T_FELHASZNALO ADD FTIP varchar(2);
END;
GO

/* A forrásból az alkalmazott idja */
IF COL_LENGTH ( 'T_ALKALMAZOTT' , 'NNIDA' ) IS NULL BEGIN
  ALTER TABLE T_ALKALMAZOTT ADD NNIDA INT;
END;
GO

/* Gondviselő ID (a forrásban) */
IF COL_LENGTH ( 'T_CIM' , 'GID' ) IS NULL BEGIN
  ALTER TABLE T_CIM ADD GID INT
END;
GO

/* A tanevrendjecsop táblából lett-e migrálva */
IF COL_LENGTH ( 'T_TANEVRENDJE' , 'CSOP' ) IS NULL BEGIN
  ALTER TABLE T_TANEVRENDJE ADD CSOP char(1)
END;
GO

  
-- ID eltolás a DICTIONARYITEMBASE táblában, hogy legyen "hely" a késõbbi rendszerelemeknek is
DBCC CHECKIDENT ('dbo.T_DICTIONARYITEMBASE', RESEED, 100000)

-- Triggerek inicializálás az összes táblára
DECLARE tableCursor CURSOR LOCAL FOR 
  SELECT DISTINCT TABLE_NAME
  FROM INFORMATION_SCHEMA.COLUMNS 
  WHERE COLUMN_NAME IN ('CREATOR', 'MODIFIER')
	AND TABLE_NAME NOT IN ('T_ENTITYHISTORY', 'T_ENTITYATTRIBUTEHISTORY', 'T_LOG', 'T_GLOBALLOCK', 'T_USERPROFILE', 'T_OLDALLATOGATOTTSAG')
	AND TABLE_NAME IN (
		SELECT t.name 
		FROM sys.tables t
		INNER JOIN sys.schemas s ON s.schema_id = t.schema_id
		WHERE s.name ='dbo' 
	)

DECLARE @table nvarchar(35)

OPEN tableCursor  
FETCH NEXT FROM tableCursor INTO @table  

WHILE @@FETCH_STATUS = 0 BEGIN  
  EXEC [dbo].[sp_Global_CreateTriggers] @table
  FETCH NEXT FROM tableCursor INTO @table  
END  

CLOSE tableCursor  
DEALLOCATE tableCursor 


--Tantárgy névhez kategória társítás tábla default adatok

INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (1, 1210, 'Matem')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (2, 1210, 'matem')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (3, 1210, 'Matek')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (4, 1210, 'matek')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (5, 1210, 'mat.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (6, 1210, 'Mat.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (7, 1210, 'Matamatika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (8, 1210, 'matamatika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (9, 1225, 'Tánc')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (10, 1225, 'tánc')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (11, 1215, 'Tört.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (12, 1215, 'tört.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (13, 1215, 'Történelem')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (14, 1215, 'történelem')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (15, 1215, 'Tötrénelem')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (16, 1215, 'tötrénelem')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (17, 1211, 'társadalmi')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (18, 1211, 'Társadalmi')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (19, 1198, 'Magyar')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (20, 1198, 'magyar')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (21, 1198, 'maygar')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (22, 1198, 'Maygar')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (23, 1198, 'Irodalom')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (24, 1198, 'irodalom')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (25, 1198, 'Nyelvtan')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (26, 1198, 'nyelvtan')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (27, 1198, 'Fogalmazás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (28, 1198, 'fogalmazás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (29, 1198, 'olvasás-írás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (30, 1198, 'Olvasás-írás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (31, 1198, 'Olvasás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (32, 1198, 'Írás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (33, 1199, 'Biológia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (34, 1199, 'biológia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (35, 1199, 'egészség')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (36, 1199, 'Egészség')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (37, 1213, 'Hittan')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (38, 1213, 'hittan')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (39, 1213, 'Erkölcs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (40, 1213, 'erkölcs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (41, 1219, 'fizika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (42, 1219, 'Fizika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (43, 1219, 'fiz.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (44, 1219, 'Fiz.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (45, 1220, 'Kémia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (46, 1220, 'kémia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (47, 1223, 'Földrajz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (48, 1223, 'földrajz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (49, 1223, 'Földünk')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (50, 1223, 'földünk')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (51, 1222, 'Környezet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (52, 1222, 'környezet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (53, 1224, 'Ének')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (54, 1224, 'ének')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (55, 1224, 'szolfézs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (56, 1224, 'Szolfézs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (57, 1224, 'Zene')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (58, 1224, 'zene')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (59, 1225, 'Dráma')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (60, 1225, 'dráma')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (61, 1226, 'vizuális')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (62, 1226, 'Vizuális')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (63, 1226, 'Rajz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (64, 1226, 'rajz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (65, 1226, 'műalkotás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (66, 1226, 'Műalkotás')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (67, 1228, 'média')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (68, 1228, 'Média')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (69, 1228, 'mozgó')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (70, 1228, 'Mozgó')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (71, 1228, 'Film')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (72, 1228, 'film')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (73, 1227, 'Művészettörténet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (74, 1227, 'művészettörténet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (75, 1229, 'számítástechnika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (76, 1229, 'Számítástechnika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (77, 1230, 'info')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (78, 1230, 'Info')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (79, 1230, 'inf.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (80, 1230, 'Inf.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (81, 1231, 'Könyvtár')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (82, 1231, 'könyvtár')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (83, 1216, 'állampolg')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (84, 1216, 'Állampolg')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (85, 1232, 'Technika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (86, 1232, 'technika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (87, 1234, 'Életvitel')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (88, 1234, 'életvitel')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (89, 1233, 'Házt')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (90, 1233, 'házt')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (91, 1292, 'etika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (92, 1292, 'Etika')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (93, 1200, 'Nemzetiségi nyelv')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (94, 1200, 'nemzetiségi nyelv')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (95, 1200, 'Nemz. nyelv')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (96, 1200, 'nemz. nyelv')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (97, 1202, 'Angol')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (98, 1202, 'angol')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (99, 1202, 'ang.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (100, 1202, 'Ang.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (101, 1204, 'Francia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (102, 1204, 'francia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (103, 1204, 'Fra.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (104, 1204, 'fra.')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (105, 1205, 'olasz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (106, 1205, 'Olasz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (107, 1203, 'német')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (108, 1203, 'Német')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (109, 1207, 'orosz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (110, 1207, 'Orosz')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (111, 1206, 'Spanyol')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (112, 1206, 'spanyol')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (113, 1208, 'Latin')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (114, 1208, 'latin')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (115, 1209, 'nyelv')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (116, 1209, 'Nyelv')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (117, 1248, 'osztályfőnöki')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (118, 1248, 'Osztályfőnöki')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (119, 1248, 'ofő')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (120, 1248, 'Ofő')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (121, 1217, 'honismeret')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (122, 1217, 'Honismeret')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (123, 1217, 'Népismeret')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (124, 1217, 'népismeret')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (125, 1212, 'filozófia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (126, 1212, 'Filozófia')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (127, 1241, 'szolfézs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (128, 1241, 'Szolfézs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (129, 1241, 'furulya')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (130, 1241, 'Furulya')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (131, 1241, 'gordonka')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (132, 1241, 'Gordonka')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (133, 1241, 'fafúvó')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (134, 1241, 'Fafúvó')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (135, 1241, 'fagott')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (136, 1241, 'Fagott')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (137, 1241, 'heged')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (138, 1241, 'Heged')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (139, 1241, 'klasszikus zene')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (140, 1241, 'Klasszikus zene')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (141, 1241, 'gitár')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (142, 1241, 'Gitár')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (143, 1241, 'zongora')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (144, 1241, 'Zongora')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (145, 1241, 'fuvola')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (146, 1241, 'Fuvola')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (147, 1241, 'klarinét')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (148, 1241, 'Klarinét')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (149, 1241, 'Szaxofon')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (150, 1241, 'szaxofon')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (151, 1241, 'kamarazene')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (152, 1241, 'Kamarazene')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (153, 1241, 'kürt')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (154, 1241, 'Kürt')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (155, 1241, 'harsona')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (156, 1241, 'Harsona')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (157, 1241, 'trombita')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (158, 1241, 'Trombita')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (159, 1241, 'tuba')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (160, 1241, 'Tuba')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (161, 1241, 'Magánének')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (162, 1241, 'magánének')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (163, 1241, 'brácsa')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (164, 1241, 'Brácsa')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (165, 1241, 'akkordik')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (166, 1241, 'Akkordik')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (167, 1241, 'csembaló')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (168, 1241, 'Csembaló')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (169, 1241, 'billentyűs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (170, 1241, 'Billentyűs')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (171, 1241, 'Rézfúvó')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (172, 1241, 'rézfúvó')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (173, 1241, 'vonós')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (174, 1241, 'Vonós')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (175, 1241, 'zeneismeret')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (176, 1241, 'Zeneismeret')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (177, 1241, 'Zenetörténet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (178, 1241, 'zenetörténet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (179, 1241, 'zeneelmélet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (180, 1241, 'Zeneelmélet')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (181, 1241, 'zeneirodalom')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (182, 1241, 'Zeneirodalom')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (183, 1241, 'Kötelezőhangszer')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (184, 1241, 'kötelezőhangszer')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (185, 1241, 'Tárogató')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (186, 1241, 'tárogató')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (187, 1241, 'Pengető')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (188, 1241, 'pengető')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (189, 1241, 'Ütős')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (190, 1241, 'ütős')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (191, 1235, 'Testnevelés')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (192, 1235, 'Tesi')
INSERT INTO [DBO].[T_TANTARGYNEVHEZKATEGORIA ]([C_SORSZAM], [C_TARGYKATEGORIA], [C_TARGYNEVVARIANS]) VALUES (193, 1235, 'Testnev.')
GO


---- Creating Stage Data Collector Job (MergeStage)
--DECLARE @JobID BINARY(16);
--DECLARE @dbName nvarchar(50) = DB_NAME();
--DECLARE @jobName nvarchar(100) = @dbName + N'_MergeStage';
--DECLARE @sql NVARCHAR(100) = N'ALTER AUTHORIZATION ON Database::[' + @dbName + N'] TO [kreta]'

--EXEC sp_executesql @sql

--EXECUTE msdb.dbo.sp_add_job 
--  @job_id = @JobID OUTPUT, @job_name = @jobName,
--  @enabled = 1, @owner_login_name = N'kreta',
--  @description = N'A stage táblák töltése és módosítása', @category_name = N'Data Collector',
--  @notify_level_eventlog = 2, @notify_level_email = 0,
--  @notify_level_netsend = 0, @notify_level_page = 0,
--  @delete_level = 0;

--EXECUTE msdb.dbo.sp_add_jobstep 
--  @job_id = @JobID, @step_id = 1, @step_name = N'StepOne', @command = N'EXEC stage.sp_MrgStage',
--  @database_name = @dbName, @database_user_name = N'dbo', @subsystem = N'TSQL', @flags = 2,
--  @retry_attempts = 1, @retry_interval = 0, @on_success_step_id = 0, @on_success_action = 1,
--  @on_fail_step_id = 0, @on_fail_action = 2;
  
--EXECUTE msdb.dbo.sp_update_job 
--  @job_id = @JobID, @start_step_id = 1;

--EXECUTE msdb.dbo.sp_add_jobserver 
--  @job_id = @JobID, @server_name = N'(LOCAL)';

--EXECUTE msdb.dbo.sp_add_jobschedule 
--  @job_id = @JobID, @name = N'', @enabled = 1,
--  @freq_type = 4, @active_start_date = 20160901, @active_end_date = 99991231,
--  @freq_interval = 1, @freq_subday_type = 1, @freq_subday_interval = 1,
--  @freq_relative_interval = 1, @freq_recurrence_factor = 1, @active_start_time = 1000,
--  @active_end_time = 235959;
--GO    
