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. automatic stored procedure or trigger

automatic stored procedure or trigger

Scheduled Pinned Locked Moved Database
databaseannouncement
4 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.
  • M Offline
    M Offline
    Mogaambo
    wrote on last edited by
    #1

    is it possible ,on every 00 hrs a stored procedure or trigger fire automatically to update certain values of atable automatically.

    D 1 Reply Last reply
    0
    • M Mogaambo

      is it possible ,on every 00 hrs a stored procedure or trigger fire automatically to update certain values of atable automatically.

      D Offline
      D Offline
      DoomedOne
      wrote on last edited by
      #2

      This is normally solved by a stored procedure that is executed from a scheduler daily at 00hs.

      Habetis bona deum

      M 1 Reply Last reply
      0
      • D DoomedOne

        This is normally solved by a stored procedure that is executed from a scheduler daily at 00hs.

        Habetis bona deum

        M Offline
        M Offline
        Mogaambo
        wrote on last edited by
        #3

        but i am building a website, how can i do there.

        D 1 Reply Last reply
        0
        • M Mogaambo

          but i am building a website, how can i do there.

          D Offline
          D Offline
          DoomedOne
          wrote on last edited by
          #4

          The schedule runs in the database server, so the type of application does not matter. For example if you database is MS SQL Server 2000 on Windows Server you create the stored procedure in the database. Then go to Enterprise Manager->[You SQL Server Group]->[You Database]->Administration->SQL Server Agent->Jobs Right Click -> add New Job: Enter a name go to tab steps-> New: Enter a name Select -> Transact SQL Command (or something like) Fill in the sp call Go to the next tab Click New Schedule Click Change Select daily Set the desired time Accept all dialogs Hope it helps

          Habetis bona deum

          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