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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. MSSQL Triggers

MSSQL Triggers

Scheduled Pinned Locked Moved Database
databasesql-serverhelp
3 Posts 3 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.
  • R Offline
    R Offline
    rajkumar 3
    wrote on last edited by
    #1

    hi , i would like to fire set of queries when a select query is fired on to particular table, can any one help in this ..

    D M 2 Replies Last reply
    0
    • R rajkumar 3

      hi , i would like to fire set of queries when a select query is fired on to particular table, can any one help in this ..

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

      As far as I know, this can't be done with triggers if that is what you are thinking. Why don't you create a stored procedure which does your "queries" and have the applications use that stored procedure instead of directly accessing the table ? Just a thought.

      1 Reply Last reply
      0
      • R rajkumar 3

        hi , i would like to fire set of queries when a select query is fired on to particular table, can any one help in this ..

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Triggers are valid for events, select is not considered an event. Besides triggers are EVIL :mad:. I'm curious as to the requirement for a trigger on a select, why do you need it

        Never underestimate the power of human stupidity RAH

        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