Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. INSTEAD OF trigger

INSTEAD OF trigger

Scheduled Pinned Locked Moved Database
databasetutorialquestionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 4700810
    wrote on last edited by
    #1

    Hi all, I want to create a trigger relating to table Demo and table UpdateInfo. UpdateInfo is created as following:

    CREATE TABLE UpdateInfo
    (ID int primary key,
    new int,
    click int)

    The task for this trigger is whenever there is a row inserted to Demo, there is an update in field [new] of UpdateInfo ( new = new +1) , but it wll just work, for example, from 1:00 am to 6:00 am. If this has been done, I then want to customize the time from an aspx page. I think I should start with INSTEAD OF trigger but I am lacking in experiences about it. Could you give me any suggestion? Thank you so much!

    D 1 Reply Last reply
    0
    • U User 4700810

      Hi all, I want to create a trigger relating to table Demo and table UpdateInfo. UpdateInfo is created as following:

      CREATE TABLE UpdateInfo
      (ID int primary key,
      new int,
      click int)

      The task for this trigger is whenever there is a row inserted to Demo, there is an update in field [new] of UpdateInfo ( new = new +1) , but it wll just work, for example, from 1:00 am to 6:00 am. If this has been done, I then want to customize the time from an aspx page. I think I should start with INSTEAD OF trigger but I am lacking in experiences about it. Could you give me any suggestion? Thank you so much!

      D Offline
      D Offline
      David Skelly
      wrote on last edited by
      #2

      How is this different from your question yesterday about triggers in a certain time period?

      U 1 Reply Last reply
      0
      • D David Skelly

        How is this different from your question yesterday about triggers in a certain time period?

        U Offline
        U Offline
        User 4700810
        wrote on last edited by
        #3

        yep, But the answer I got yesterday is still dubious. I am still having no ideas about how to check time & check by which syntax. The question today is one in my effort to find out solution for the question of yesterday, but in a different form :D I think INSTEAD OF trigger can help me to sovle prolem. That is the reason for the question today ^^ However, if you think just a standard trigger is quite enough to solve my problem, could you give me a more specific example? Thanks for your help!

        modified on Wednesday, December 9, 2009 8:36 AM

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups