GO SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON; SET NUMERIC_ROUNDABORT OFF; GO PRINT N'Altering [dbo].[T_FOGLALKOZAS]...'; GO ALTER TABLE [dbo].[T_FOGLALKOZAS] ADD [C_ISFELNOTTKEPZESI] CHAR (1) DEFAULT ('F') NOT NULL, [C_ISNEMZETISEGI] CHAR (1) DEFAULT ('F') NOT NULL, [C_TULORASZAM] INT DEFAULT ((0)) NOT NULL; GO PRINT N'Refreshing [dbo].[T_FOGLALKOZAS_OSSZES]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[T_FOGLALKOZAS_OSSZES]'; GO PRINT N'Refreshing [dbo].[fnGetDokumentumErtekelesekMuveszetiOktatasbanOsztalyonkent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[fnGetDokumentumErtekelesekMuveszetiOktatasbanOsztalyonkent]'; GO PRINT N'Refreshing [dbo].[fnGetDokumentumOsztalyTanuloinakMegtarthatoOrakTantargyankent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[fnGetDokumentumOsztalyTanuloinakMegtarthatoOrakTantargyankent]'; GO PRINT N'Refreshing [dbo].[fnGetDokumentumErtekelesekOsztalyonkent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[fnGetDokumentumErtekelesekOsztalyonkent]'; GO PRINT N'Refreshing [dbo].[fnGetDokumentumTanulokEvesOraszamaiOsztalyonkent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[fnGetDokumentumTanulokEvesOraszamaiOsztalyonkent]'; GO PRINT N'Refreshing [dbo].[fnGetDokumentumTanulokTanultTantargyai]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[fnGetDokumentumTanulokTanultTantargyai]'; GO PRINT N'Refreshing [dbo].[sp_Global_GetDatabaseErrors]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_Global_GetDatabaseErrors]'; GO PRINT N'Refreshing [dbo].[sp_FoglalkozasArchiv]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_FoglalkozasArchiv]'; GO PRINT N'Refreshing [dbo].[sp_GetAttanitasok]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetAttanitasok]'; GO PRINT N'Refreshing [dbo].[sp_GetFelhasznaloErintettTargyai]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetFelhasznaloErintettTargyai]'; GO PRINT N'Refreshing [dbo].[sp_GetFelhasznaloJogok]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetFelhasznaloJogok]'; GO PRINT N'Refreshing [dbo].[sp_GetFelhasznaloOsztalyaiByFoglalkozas]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetFelhasznaloOsztalyaiByFoglalkozas]'; GO PRINT N'Refreshing [dbo].[sp_GetNaplozasMulasztasList]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetNaplozasMulasztasList]'; GO PRINT N'Refreshing [dbo].[sp_GetOsszesNemBejegyzettOra]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetOsszesNemBejegyzettOra]'; GO PRINT N'Refreshing [dbo].[sp_GetPedagogusStatuszRiport]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetPedagogusStatuszRiport]'; GO PRINT N'Refreshing [dbo].[sp_GetRiportAllashelyKimutatas]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetRiportAllashelyKimutatas]'; GO PRINT N'Refreshing [dbo].[sp_GetRiportBetoltetlenAllashelyek]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetRiportBetoltetlenAllashelyek]'; GO PRINT N'Refreshing [dbo].[sp_GetRiportCsoportbontasosOrakSzamaTipusokSzerint]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetRiportCsoportbontasosOrakSzamaTipusokSzerint]'; GO PRINT N'Refreshing [dbo].[sp_GetRiportCsoportnontas]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetRiportCsoportnontas]'; GO PRINT N'Refreshing [dbo].[sp_GetRiportTanariAdatok]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetRiportTanariAdatok]'; GO PRINT N'Refreshing [dbo].[sp_GetRiportTanorakSzamaCsoporttipusonkent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetRiportTanorakSzamaCsoporttipusonkent]'; GO PRINT N'Refreshing [dbo].[sp_GetRiportTantargyiOktatok]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetRiportTantargyiOktatok]'; GO PRINT N'Refreshing [dbo].[sp_GetTantargyiStatuszPedagogusonkent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetTantargyiStatuszPedagogusonkent]'; GO PRINT N'Refreshing [dbo].[sp_GetTantargyStatuszRiport]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetTantargyStatuszRiport]'; GO PRINT N'Refreshing [dbo].[sp_SetRendszerErtesitesek]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_SetRendszerErtesitesek]'; GO PRINT N'Refreshing [dbo].[uspGetFelhasznaloOsztalyaiByFoglalkozasAndOsztfo]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetFelhasznaloOsztalyaiByFoglalkozasAndOsztfo]'; GO PRINT N'Refreshing [dbo].[uspGetTanarAltalErtekelhetoCsoportok]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanarAltalErtekelhetoCsoportok]'; GO PRINT N'Refreshing [dbo].[uspGetTanuloErtekelesDataSetByTantargy]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanuloErtekelesDataSetByTantargy]'; GO PRINT N'Refreshing [dbo].[uspTanmenetModositasTTFModositaskor]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspTanmenetModositasTTFModositaskor]'; GO PRINT N'Refreshing [dbo].[uspGetMunkaidoElszamoloLap]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetMunkaidoElszamoloLap]'; GO PRINT N'Refreshing [dbo].[uspGetNapkozisNaplo]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetNapkozisNaplo]'; GO PRINT N'Refreshing [dbo].[uspGetTanoranKivuliNaplo]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanoranKivuliNaplo]'; GO PRINT N'Refreshing [dbo].[sp_GetSzakmaiGyNaplo]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetSzakmaiGyNaplo]'; GO PRINT N'Refreshing [dbo].[sp_GetElfogadottTantargyfelosztasok]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetElfogadottTantargyfelosztasok]'; GO PRINT N'Refreshing [dbo].[sp_Nyomtatvany_Excel_IdoszakiOsztalyStatisztika]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_Nyomtatvany_Excel_IdoszakiOsztalyStatisztika]'; GO PRINT N'Refreshing [dbo].[sp_Nyomtatvany_Excel_OsztalyTanuloinakGyakorlatiOraMulasztasiSzazalekStatisztika]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_Nyomtatvany_Excel_OsztalyTanuloinakGyakorlatiOraMulasztasiSzazalekStatisztika]'; GO PRINT N'Refreshing [dbo].[sp_Nyomtatvany_Excel_OsztalyTanuloinakMulasztasiSzazalekStatisztika]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_Nyomtatvany_Excel_OsztalyTanuloinakMulasztasiSzazalekStatisztika]'; GO PRINT N'Refreshing [dbo].[sp_GetFogadooraInfo]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetFogadooraInfo]'; GO PRINT N'Refreshing [dbo].[sp_DeleteAllTTF]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_DeleteAllTTF]'; GO PRINT N'Refreshing [dbo].[sp_FizikaiTorlesTantargyfelosztas]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_FizikaiTorlesTantargyfelosztas]'; GO PRINT N'Refreshing [dbo].[sp_GetAdminDashboardStatisztika]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetAdminDashboardStatisztika]'; GO PRINT N'Refreshing [dbo].[sp_GetErtekelesFotargyiFoglalkozasData]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetErtekelesFotargyiFoglalkozasData]'; GO PRINT N'Refreshing [dbo].[sp_GetFelhasznaloFoglalkozasokErtekelesekhez]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetFelhasznaloFoglalkozasokErtekelesekhez]'; GO PRINT N'Refreshing [dbo].[sp_GetFoglalkozasokMegtartandoOraSzama]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetFoglalkozasokMegtartandoOraSzama]'; GO PRINT N'Refreshing [dbo].[sp_GetHaladasiNaploAdatok]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetHaladasiNaploAdatok]'; GO PRINT N'Refreshing [dbo].[sp_GetPedagogusAltalAdottErtekelesek]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetPedagogusAltalAdottErtekelesek]'; GO PRINT N'Refreshing [dbo].[sp_GetTanarOrarendLefedettseg]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetTanarOrarendLefedettseg]'; GO PRINT N'Refreshing [dbo].[sp_GetTantargyakElmaradtOraszama]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetTantargyakElmaradtOraszama]'; GO PRINT N'Refreshing [dbo].[sp_GetTantargyakMegtartottOraszama]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetTantargyakMegtartottOraszama]'; GO PRINT N'Refreshing [dbo].[sp_GetTanulokJelenletiIvAlkalmankent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetTanulokJelenletiIvAlkalmankent]'; GO PRINT N'Refreshing [dbo].[sp_GetTeremrend]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetTeremrend]'; GO PRINT N'Refreshing [dbo].[sp_PedagogusNemBejegyzettOraiOsszes]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_PedagogusNemBejegyzettOraiOsszes]'; GO PRINT N'Refreshing [dbo].[uspGetBukasokSzama]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetBukasokSzama]'; GO PRINT N'Refreshing [dbo].[uspGetDokumentumTantargyakErtekeleshez]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetDokumentumTantargyakErtekeleshez]'; GO PRINT N'Refreshing [dbo].[uspGetTanarAltalErtekelhetoCsoportokTantargyak]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanarAltalErtekelhetoCsoportokTantargyak]'; GO PRINT N'Refreshing [dbo].[uspGetTanarDolgozatTantargyak]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanarDolgozatTantargyak]'; GO PRINT N'Refreshing [dbo].[uspGetTanarFoglalkozasai]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanarFoglalkozasai]'; GO PRINT N'Refreshing [dbo].[uspGetTanarNemTanitottOsztalyaiByFoglalkozas]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanarNemTanitottOsztalyaiByFoglalkozas]'; GO PRINT N'Refreshing [dbo].[uspGetTantargyFelosztasokByTanuloId]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTantargyFelosztasokByTanuloId]'; GO PRINT N'Refreshing [dbo].[uspGetTanuloErtekelesDataSetByFotargyAltargy]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanuloErtekelesDataSetByFotargyAltargy]'; GO PRINT N'Refreshing [dbo].[uspKIRstat_FelhasznaloPedagogus]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspKIRstat_FelhasznaloPedagogus]'; GO PRINT N'Refreshing [dbo].[uspKIRstat_FelhasznaloTanoranKivuliCsoport]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspKIRstat_FelhasznaloTanoranKivuliCsoport]'; GO PRINT N'Refreshing [dbo].[uspTantargyfelosztasImport]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspTantargyfelosztasImport]'; GO PRINT N'Refreshing [dbo].[uspGetTanulokJegyeiReszletezes]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTanulokJegyeiReszletezes]'; GO PRINT N'Refreshing [dbo].[sp_GetDokumentumErtekelesek]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetDokumentumErtekelesek]'; GO PRINT N'Refreshing [dbo].[sp_Nyomtatvany_Excel_IdoszakiOsztalyokCsoportokTantargyiStatisztika]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_Nyomtatvany_Excel_IdoszakiOsztalyokCsoportokTantargyiStatisztika]'; GO PRINT N'Refreshing [dbo].[sp_Nyomtatvany_Excel_IdoszakiOsztalyokTantargyiStatisztika]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_Nyomtatvany_Excel_IdoszakiOsztalyokTantargyiStatisztika]'; GO PRINT N'Refreshing [dbo].[sp_GetOsztalyokEvesOraszama]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetOsztalyokEvesOraszama]'; GO PRINT N'Refreshing [dbo].[sp_GetDokumentumErtekelesekIdoszakonkent]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[sp_GetDokumentumErtekelesekIdoszakonkent]'; GO PRINT N'Refreshing [dbo].[uspGetTorzslap]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetTorzslap]'; GO PRINT N'Refreshing [dbo].[uspGetErtesitoNyomtatvany]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetErtesitoNyomtatvany]'; GO PRINT N'Refreshing [dbo].[uspGetOsztalyNaplo]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetOsztalyNaplo]'; GO PRINT N'Refreshing [dbo].[uspGetCsoportNaplo]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetCsoportNaplo]'; GO PRINT N'Refreshing [dbo].[uspOrarendImport]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspOrarendImport]'; GO PRINT N'Refreshing [dbo].[uspGetUzenofuzetErtekelolap]...'; GO EXECUTE sp_refreshsqlmodule N'[dbo].[uspGetUzenofuzetErtekelolap]'; GO PRINT N'Update complete.'; GO ----------------------------------------------------------- DECLARE @viewname nvarchar(100), @pureview nvarchar(100) DECLARE semaviewk CURSOR LOCAL FOR SELECT '['+TABLE_SCHEMA + '].[' + TABLE_NAME + ']', TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'VIEW' and TABLE_SCHEMA LIKE 'KR[_]%[_]Schema' AND TABLE_NAME in ( 'T_FOGLALKOZAS', 'T_FOGLALKOZAS_OSSZES' ) -- ha csak néhány VIEW frissült, akkor a gyorsabb futásért ide fel lehet sorolni ORDER BY TABLE_SCHEMA, TABLE_NAME OPEN semaviewk FETCH NEXT FROM semaviewk INTO @viewname, @pureview WHILE @@FETCH_STATUS = 0 BEGIN PRINT @viewname EXEC sp_refreshview @viewname FETCH NEXT FROM semaviewk INTO @viewname, @pureview END CLOSE semaviewk DEALLOCATE semaviewk GO ---------------------------------------------------------- EXEC dev.sp_Global_GenerateAsyncAuditTriggerAll GO ALTER QUEUE auditLog.[AuditQueue] WITH ACTIVATION ( STATUS = ON, PROCEDURE_NAME = auditLog.usp_AuditProcessing, MAX_QUEUE_READERS = 10, EXECUTE AS 'Kreta_tech_user' ); GO