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 record insertion depends on system date sql server 2000?

Automatic record insertion depends on system date sql server 2000?

Scheduled Pinned Locked Moved Database
questiondatabasesql-serversysadmin
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.
  • D Offline
    D Offline
    Dotnetkanna
    wrote on last edited by
    #1

    Hi, Im having two tables in sql server 2000 with same structure in first table if the current sysdate is equal to first table BDate column value means the first table that current sysdate record should be automatically insert to the second table,How can i acheive this one..any suggestions... First Table: --------------- Name BDate Content ------------------------------- Kanna 12/5/2008 Hapy birthday Second Table: -------------- Name BDate Content ------------------------------- Regards Kanna

    K 1 Reply Last reply
    0
    • D Dotnetkanna

      Hi, Im having two tables in sql server 2000 with same structure in first table if the current sysdate is equal to first table BDate column value means the first table that current sysdate record should be automatically insert to the second table,How can i acheive this one..any suggestions... First Table: --------------- Name BDate Content ------------------------------- Kanna 12/5/2008 Hapy birthday Second Table: -------------- Name BDate Content ------------------------------- Regards Kanna

      K Offline
      K Offline
      Krish KP
      wrote on last edited by
      #2

      Create a job to fetch all rows from first table that matches to the current date and copies to second table Schedule the job to execute daily

      Regards KP

      D 1 Reply Last reply
      0
      • K Krish KP

        Create a job to fetch all rows from first table that matches to the current date and copies to second table Schedule the job to execute daily

        Regards KP

        D Offline
        D Offline
        Dotnetkanna
        wrote on last edited by
        #3

        Thanks for ur reply how should i create job.. im new to this concept..can u give me the example code??? regards Kanna

        K 1 Reply Last reply
        0
        • D Dotnetkanna

          Thanks for ur reply how should i create job.. im new to this concept..can u give me the example code??? regards Kanna

          K Offline
          K Offline
          Krish KP
          wrote on last edited by
          #4

          From SQL Enterprise Manager, select your server instance and go to Management -> SQL Server Agent -> Jobs right click "New Job" write your SQL query under "step" then schedule the job

          Regards KP

          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