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?
Rama TitoProgrammerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 TitoProgrammerAuthor Commented:
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
ste5anSenior DeveloperCommented:
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.
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

Rama TitoProgrammerAuthor Commented:

I did try to create event and seems doesn't trigger. In the attachment i have enclose the screen shot
ste5anSenior DeveloperCommented:
Wink, wink: "conceptual problem."

i want to initialise my variables in trigger function everyday 0800 hrs
Your question has two parts: initialise my variables in trigger and everyday 0800 hrs.
Variables in a trigger are initialized always when you run your trigger due to the scope of variables. Scheduling does not relate to this.
So the "conceptual problem" is: Why do you think, there is a date/time dependency? You need to elaborate this point first..

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rama TitoProgrammerAuthor Commented:
Thank you, thats triggered me with  date/time dependency.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.