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. automatically Run an Sql statement

automatically Run an Sql statement

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelp
6 Posts 5 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.
  • A Offline
    A Offline
    achrafus
    wrote on last edited by
    #1

    hello everybody, I have an sql statement that I want to automatially run at the beguining of each month from server side. I'm using sql server 2000 and didn't find anything about dbmsjobs in sql! Can anybody help me with that please -- modified at 15:23 Tuesday 27th September, 2005

    C B A 3 Replies Last reply
    0
    • A achrafus

      hello everybody, I have an sql statement that I want to automatially run at the beguining of each month from server side. I'm using sql server 2000 and didn't find anything about dbmsjobs in sql! Can anybody help me with that please -- modified at 15:23 Tuesday 27th September, 2005

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      You can set up a job that the SQL Server Agent will perform for you on the schedule that you want. Go in to Enterprise Manager, Open the server that you want the job to run on, select the Management folder and then SQL Server Agent and finally Jobs. You can right-click on Jobs and select New Job... and you'll get a dialog that will allow you to define the job. Does this help?


      My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious

      1 Reply Last reply
      0
      • A achrafus

        hello everybody, I have an sql statement that I want to automatially run at the beguining of each month from server side. I'm using sql server 2000 and didn't find anything about dbmsjobs in sql! Can anybody help me with that please -- modified at 15:23 Tuesday 27th September, 2005

        B Offline
        B Offline
        Bigfootguy
        wrote on last edited by
        #3

        - Create a DTS Package that will run that SQL statement ( ->Data Transformation Services -> Local Packages ) - Schedule it to run at designated time / interval ( ->Management ->SQL Server Agent ->Jobs ) Best Bigfootguy

        1 Reply Last reply
        0
        • A achrafus

          hello everybody, I have an sql statement that I want to automatially run at the beguining of each month from server side. I'm using sql server 2000 and didn't find anything about dbmsjobs in sql! Can anybody help me with that please -- modified at 15:23 Tuesday 27th September, 2005

          A Offline
          A Offline
          achrafus
          wrote on last edited by
          #4

          thank you very much

          U 1 Reply Last reply
          0
          • A achrafus

            thank you very much

            U Offline
            U Offline
            User 2192404
            wrote on last edited by
            #5

            what do u think abt triggers.HUH!u can write triggers that will execute it on 1st of every month. get back to me

            A 1 Reply Last reply
            0
            • U User 2192404

              what do u think abt triggers.HUH!u can write triggers that will execute it on 1st of every month. get back to me

              A Offline
              A Offline
              Anonymous
              wrote on last edited by
              #6

              Triggers cannot be scheduled. Triggers get fired only when you delete, update or insert data on a table with triggers.

              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