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. Modifications Date

Modifications Date

Scheduled Pinned Locked Moved Database
databasequestionhelp
5 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.
  • G Offline
    G Offline
    gpeterer
    wrote on last edited by
    #1

    How do I find out the Modification Dates of my Views on a Database SQL 2000? Thanks in advanced for your help

    D 1 Reply Last reply
    0
    • G gpeterer

      How do I find out the Modification Dates of my Views on a Database SQL 2000? Thanks in advanced for your help

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

      SELECT Name, CRDate FROM SysObjects WHERE Name LIKE '%YourView%'

      I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

      G 1 Reply Last reply
      0
      • D Dr_X

        SELECT Name, CRDate FROM SysObjects WHERE Name LIKE '%YourView%'

        I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

        G Offline
        G Offline
        gpeterer
        wrote on last edited by
        #3

        Thanks for your answer But this is the Creation Date, I'm looking for the Modify Date. Do you have an idea to find de Modify Date??

        D 1 Reply Last reply
        0
        • G gpeterer

          Thanks for your answer But this is the Creation Date, I'm looking for the Modify Date. Do you have an idea to find de Modify Date??

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

          Sorry, I don't see it in sysobjects, not that it doesn't exists somewhere.

          --create
          alter view vw_Junk
          as
          SELECT * from tempdb..tblJunk

          select * from sysobjects where type = 'v'

          name id xtype uid info status base_schema_ver replinfo parent_obj crdate ftcatid schema_ver stats_schema_ver type userstat sysstat indexdel refdate version deltrig instrig updtrig seltrig category cache


          vw_Junk 872153252 V 1 36 1610612736 0 0 0 2007-03-23 07:59:21.897 0 0 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0
          vw_Junk 872153252 V 1 36 1610612736 16 0 0 2007-03-23 07:59:21.897 0 16 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0
          vw_Junk 872153252 V 1 36 1610612736 32 0 0 2007-03-23 07:59:21.897 0 32 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0

          There is a sc

          G 1 Reply Last reply
          0
          • D Dr_X

            Sorry, I don't see it in sysobjects, not that it doesn't exists somewhere.

            --create
            alter view vw_Junk
            as
            SELECT * from tempdb..tblJunk

            select * from sysobjects where type = 'v'

            name id xtype uid info status base_schema_ver replinfo parent_obj crdate ftcatid schema_ver stats_schema_ver type userstat sysstat indexdel refdate version deltrig instrig updtrig seltrig category cache


            vw_Junk 872153252 V 1 36 1610612736 0 0 0 2007-03-23 07:59:21.897 0 0 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0
            vw_Junk 872153252 V 1 36 1610612736 16 0 0 2007-03-23 07:59:21.897 0 16 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0
            vw_Junk 872153252 V 1 36 1610612736 32 0 0 2007-03-23 07:59:21.897 0 32 0 V 0 2 0 2007-03-23 07:59:21.897 0 0 0 0 0 0 0

            There is a sc

            G Offline
            G Offline
            gpeterer
            wrote on last edited by
            #5

            Thanks for your help. I found a different way. I made a back up from the database and restored it on a SQL 2005, in the SQL 2005 I have the System View sys.views whit the Creation Date and Modify Data! It’s not a very beautiful way, but it works..... select * from sys.views order by modify_date DESC

            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