﻿IF OBJECT_ID('dev.uspCreateTanevRendje20182019') IS NOT NULL BEGIN
  DROP PROCEDURE  dev.uspCreateTanevRendje20182019
END  
GO

CREATE PROCEDURE dev.uspCreateTanevRendje20182019
  @intezmenyId int,
  @tanevId int
AS
BEGIN
  
  SET NOCOUNT ON;
  SET DATEFIRST 1;

  INSERT  dbo.T_TANEVRENDJE (
    C_AKTIV, C_DATUM, C_HETIREND, C_HETNAPJA, C_MEGJEGYZES, C_NAPTIPUSA, C_ORARENDINAP, C_OSSZESCSOPORTRAVONATKOZIK, C_CSENGETESIRENDID, C_INTEZMENYID, C_TANEVID, TOROLT, SERIAL, LASTCHANGED, CREATED, MODIFIER, CREATOR
  ) VALUES
    ('T', '20180903', 1554, 1408, N'', 1394, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190614', 1554, 1412, N'', 1395, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181013', 1554, 1408, N'', 1385, 'T', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181022', 1554, NULL, N'', 6833, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181023', 1554, NULL, N'', 1396, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181029', 1554, NULL, N'', 1399, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181030', 1554, NULL, N'', 1399, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181031', 1554, NULL, N'', 1399, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181101', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181102', 1554, NULL, N'', 6833, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181110', 1554, 1412, N'', 1385, 'T', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181201', 1554, 1408, N'', 1385, 'T', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181215', 1554, 1408, N'', 1385, 'T', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181224', 1554, NULL, N'', 6833, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181225', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181226', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181227', 1554, NULL, N'', 1397, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20181228', 1554, NULL, N'', 1397, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20171231', 1554, NULL, N'', 6833, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190101', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190102', 1554, NULL, N'', 1397, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190125', 1554, 1412, N'', 1400, 'T', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190315', 1554, NULL, N'', 1396, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190418', 1554, NULL, N'', 1398, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190419', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190422', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190423', 1554, NULL, N'', 1398, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190501', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190502', 1554, 1411, N'', 1402, 'T', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL),
    ('T', '20190610', 1554, NULL, N'', 1386, 'F', 'T', NULL, @intezmenyId, @tanevId, 'F', 0, GETDATE(), GETDATE(), NULL, NULL)    
END
GO
