Avatar of Rama Tito
Rama Tito
Flag for Malaysia asked on

Initialise variable in trigger function every day at 0800hrs

Hi Experts,

i do have trigger functions and works accordingly. i want to initialise my variables in trigger function everyday 0800 hrs. How i can do that?

Avatar of undefined
Last Comment
Rama Tito

8/22/2022 - Mon

Hi Rama,

The triggers will be fired on DML or DDL opeartions.
In case you want to execute something on 0800 hrs then I suggest to convert in procedure and do whatever you want to do using SQL Agent Job (in case MSSQL Server) .

Best Regards,
Mohit Pandit
Rama Tito

Hi Mohit Pandit,

I am using Mariadb and it a DML operation. I didn't really get what you meant. Please do assist further.

Rama tito

i want to initialise my variables in trigger function everyday 0800 hrs. How i can do that?
By calling your trigger at 08:00 AM.

Otherwise you have a conceptual problem.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Rama Tito


I did try to create event and seems doesn't trigger. In the attachment i have enclose the screen shot

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Rama Tito

Thank you, thats triggered me with  date/time dependency.