USE [msdb]
GO

-- Job: Backup FULL - toda madrugada às 02:00
EXEC sp_add_job @job_name = N'Backup FULL - Levelcode-LevelOS';

EXEC sp_add_jobstep
    @job_name  = N'Backup FULL - Levelcode-LevelOS',
    @step_name = N'Executar Backup FULL',
    @command   = N'EXEC [Levelcode-LevelOS].[dbo].[sp_BackupFull]',
    @database_name = N'Levelcode-LevelOS';

EXEC sp_add_schedule
    @schedule_name = N'Diario 02:00',
    @freq_type     = 4,       -- diário
    @freq_interval = 1,
    @active_start_time = 020000; -- 02:00:00

EXEC sp_attach_schedule
    @job_name      = N'Backup FULL - Levelcode-LevelOS',
    @schedule_name = N'Diario 02:00';

EXEC sp_add_jobserver
    @job_name = N'Backup FULL - Levelcode-LevelOS';
GO