Link to home
Start Free TrialLog in
Avatar of Rama Tito
Rama TitoFlag 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 MohitPandit
MohitPandit
Flag of India image

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
Avatar of Rama Tito

ASKER

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
Avatar of ste5an
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.
Hi,

I did try to create event and seems doesn't trigger. In the attachment i have enclose the screen shot
event.png
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, thats triggered me with  date/time dependency.