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.

MohitPanditCommented:
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
0
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.

Regards
Rama tito
0
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.
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Rama TitoProgrammerAuthor Commented:
Hi,

I did try to create event and seems doesn't trigger. In the attachment i have enclose the screen shot
event.png
0
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..
0

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.
0
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.