Find Jobs
Hire Freelancers

SQL Job dependency

$30-250 USD

Ukończony
Opublikowano ponad 11 lat temu

$30-250 USD

Płatne przy odbiorze
Hi, I wanted to create a process to control SQL Server Jobs that depend on each other. Job Control Process The process controls SQL Server Jobs that depend on each other ie. if Job1 depends on Job 2 ie. Job2 has to complete, before Job1 can start, then the process will control the job starting. At the moment the jobs are scheduled to run at specific times eg. Job2 is scheduled to start at 1pm and Job1 at 2pm. The issue is that if Job2 runs for over an hour, the next job (Job1) would fail. The process controls job start times based on Job levels (not Job steps). The following tables in the Operations database manage the control process. • AS_JobSchedules - A table that contains the jobs • AS_Dependencies - A table that contains a list of Jobs and their dependencies. ? JobID FK to JSID in JobSchedules, ? JobDependencyID FK to JSID in JobSchedules ? Priority specifies priority of dependency in case 1 job depends on more than one job. • AS_JobRunLog - A table that logs RunStartdate, RunCompletedDate or RunFailedDate of every job that runs. • AS_JobRunWaitLog - A table that logs the job that’s waiting, the job that’s causing the wait and duration of wait. Every Job will have 2 extra steps around the normal job steps of the job. 1. Begin Check Job dependency 2. Whatever the job steps are... 3. Log Job dependency The broad process might be: 1. Job1 begins – Step1 (Begin Check Job dependency stored Procedure) a. INSERTs a record in the AS_JobRunLog table with RunStartDate (leaving RunCompletedDate and RunFailedDate as NULL) b. Checks AS_Dependencies table for its dependency job/s. It then checks to see if that job's entry in the AS_JobRunLog table has a RunCompleted that is not null and within 24 hours of the RunStartDate of this job (ie the job that ran last actually completed). c. If it’s completed, the Steps 1 completes successfully and the next step can begin. d. If not; ie the job is still running, it INSERTs a record in the AS_JobRunWaitLog. e. It uses a WAITFOR and hangs back for 10 minutes and tries again until it finds the dependency job has completed. The job step then completes successfully and the next step can begin. 2. Step2 – The actual step of that job. 3. Step 3 - (Log Job dependency stored Procedure) a. If the previous job step succeeds, Step 3 stored procedure UPDATEs the record in the AS_JobRunLog table with RunCompletedDate (leaving RunFailedDate as NULL) b. If the previous job step fails, Step 3 stored procedure UPDATEs the record in the AS_JobRunLog table with RunFailedDate (leaving RunCompletedDate as NULL) So in summary, I need someone to write 2 stored procedures that achieve the above process using the tables listed. 1. usp_BeginCheckJobDependency stored Procedure 2. usp_LogJobDependency stored Procedure Please quote for this. Thank you.
Identyfikator projektu: 4118658

Informację o projekcie

12 ofert
Zdalny projekt
Aktywny 11 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
Hi, I would be pleased to write your two stored procs for you. Your procs will be delivered on a silver platter and fully tested. Please refer to PM for references.
$160 USD w 2 dni
5,0 (52 opinii)
5,8
5,8
12 freelancerzy składają oferty o średniej wysokości $275 USD dla tej pracy
Awatar Użytkownika
Hi, Please consider my proposal for the task. Regards, Muhammad Ali Safder
$150 USD w 5 dni
5,0 (36 opinii)
5,1
5,1
Awatar Użytkownika
please refer PMB
$175 USD w 5 dni
5,0 (1 opinia)
2,9
2,9
Awatar Użytkownika
functional needs, I'd like to do that, would you mind increase your budget?
$1 300 USD w 3 dni
5,0 (1 opinia)
1,8
1,8
Awatar Użytkownika
Hi Asim, Please check the PM for details. Regards, Prteek3288
$250 USD w 4 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
I have read your idea, and I am curious the solution you are talking, let's discuss more details.
$200 USD w 5 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
I am SQL Architech having 10+ working experience and I have already design such job functionality. SO I can ensure you 100% satisfation.
$100 USD w 4 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
Hi, I have experience in SQL and reporting using various tool and can be potential asset for your project. Please check your message box for more details.
$150 USD w 2 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
I have excellent experience in PLSQL and SQL. I am ready to start.
$100 USD w 5 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
Hey There! I am interested in doing this project for you.
$210 USD w 5 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
Hi, we have team working on web applications, SQL, PLSQL and database technologies. We assure the quality of work and delivery. We have successfully completed many projects in past and it is very easy project. Thanks in advance...!!!
$150 USD w 5 dni
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
understand requirements; can do it in 24h
$350 USD w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED KINGDOM
London, United Kingdom
5,0
37
Zweryfikowana metoda płatności
Członek od lip 15, 2005

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.