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. Table which will become blank after a certain period.

Table which will become blank after a certain period.

Scheduled Pinned Locked Moved Database
5 Posts 4 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
    RajpootRohan
    wrote on last edited by
    #1

    Hi , I have a application in which I have to store the user's data.So that he can retrieve it between its visits to the website.But I want that after 30 days that table should become blank. Is there any way out. Please give some guidance.... Thanx in advance.

    cheers, sneha

    J 1 Reply Last reply
    0
    • R RajpootRohan

      Hi , I have a application in which I have to store the user's data.So that he can retrieve it between its visits to the website.But I want that after 30 days that table should become blank. Is there any way out. Please give some guidance.... Thanx in advance.

      cheers, sneha

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      On SQL Server, this is generally achieved by using a SQL Agent that periodically scans the table for records older than "x" and removes them.

      R 1 Reply Last reply
      0
      • J J4amieC

        On SQL Server, this is generally achieved by using a SQL Agent that periodically scans the table for records older than "x" and removes them.

        R Offline
        R Offline
        RajpootRohan
        wrote on last edited by
        #3

        Thanks a lot... It really worked...

        cheers, sneha

        S A 2 Replies Last reply
        0
        • R RajpootRohan

          Thanks a lot... It really worked...

          cheers, sneha

          S Offline
          S Offline
          Senthil_M
          wrote on last edited by
          #4

          Sneha, Pls give a brief about how did you do it? Senthil

          1 Reply Last reply
          0
          • R RajpootRohan

            Thanks a lot... It really worked...

            cheers, sneha

            A Offline
            A Offline
            ashok_rgm
            wrote on last edited by
            #5

            Hello mate, Is it not going to effect your applications which are using the data from those tables, here I have similar problem like how to identify the unaccessed tables over a period of time. Can u pls help me out, Regards, Ashok

            ashok

            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