Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Oracle   »   Database date event trigger

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Sep 24, 2007, 01:45 AM
uiyo_90_09
New Member
uiyo_90_09 is offline
 
Join Date: Jun 2007
Posts: 6
uiyo_90_09 See this member's comment history on his/her Profile page.
Database date event trigger

how to write a trigger that will be executed on a specific date/day of every month/week?
If you have any example, please describe.

Reply With Quote
 
     

Answers
 
 
Old Sep 24, 2007, 05:22 AM   #2  
benn11
Ultra Member
benn11 is offline
 
benn11's Avatar
 
Join Date: Apr 2007
Posts: 1,038
benn11 See this member's comment history on his/her Profile page.
Check this out, It explains the whole concept very well >>
  Reply With Quote
 
     
 
 
Old Oct 4, 2007, 06:08 AM   #3  
jstrike
Full Member
jstrike is offline
 
Join Date: May 2007
Location: Wisconsin - Go Packers!
Posts: 389
jstrike See this member's comment history on his/her Profile page.
Quote:
Originally Posted by uiyo_90_09
how to write a trigger that will be executed on a specific date/day of every month/week?
If you have any example, please describe.
Triggers are executed in response to an action on a table (typically but not limited to, add,modify and delete) not an external event like date/time. For example you could setup a trigger so that when you modify a column on table A the trigger would run some sql that would perform another action on table B. If there is a trigger on table B, that trigger could fire off some more SQL, etc...

If you need to execute some SQL code at a specific time a trigger is not the way to do it. Write a small application in the language of your choice that will connect to the database and execute the SQL then setup a timer (such as cron) to run that program when you want. It's also a good idea to include logging in the application so you can check the status/success.

HTH.
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Homelite Weedeater Throttle Trigger toby02 Tools & Power Equipment 0 Jun 24, 2007 10:57 AM
Trigger Injections Sunny3565 Alternative Medicine 1 Mar 21, 2007 12:36 PM
to-date total based on current date dreamkeeper Spreadsheets 1 Aug 9, 2006 09:16 AM
Special Event LeeBee Weight Loss 1 Feb 13, 2006 04:49 PM
F-1 to H-1, what's the start date of H-1? Should be approval date or visa issue day? kkm Taxes 3 Apr 1, 2005 10:29 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 08:59 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.