Results 1 to 2 of 2

Thread: Public Holidays

  1. #1
    Join Date
    Jan 2010

    Unanswered: Public Holidays

    Hi All,

    I need to write a constraint for the following scenario.

    When inserting a new record for Table 'PracticalSession', I need to check that PracticalSession.StartDate doesn't fall on a Public Holiday.

    What would be a simple way to implement this ?
    I was thinking of creating a INSERT/UPDATE TRIGGER
    that will check against a predefined table called 'Holidays'.

    What do you guys think ?

  2. #2
    Join Date
    Feb 2004
    One Flump in One Place
    If you need this constraint then I would instead have a table of working days and implement a standard, declarative foreign key to that. Much simpler and less code than using triggers.
    pootle flump
    ur codings are working excelent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts