kreta/Kreta.DataAccess.Migrations/Scripts/20220524135443_DB_4613/DB_4613.sql
2024-03-13 00:33:46 +01:00

25 lines
No EOL
507 B
Transact-SQL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--Migration
DECLARE @IntezmenyID varchar(100)
DECLARE keys_cursor CURSOR FOR
SELECT ID as IntezmenyID from T_INTEZMENY
WHERE C_ISARCHIV = 'F' AND TOROLT = 'F'
ORDER BY IntezmenyID
OPEN keys_cursor
FETCH NEXT FROM keys_cursor
INTO @IntezmenyID
WHILE @@FETCH_STATUS = 0
BEGIN
EXEC dev.uspGenerateTanevAdatokFromExistingTanev @IntezmenyID, '2022/2023', '2021/2022', 1
FETCH NEXT FROM keys_cursor
INTO @IntezmenyID
END
CLOSE keys_cursor;
DEALLOCATE keys_cursor;