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. General Programming
  3. C#
  4. how to find latest table created from database.

how to find latest table created from database.

Scheduled Pinned Locked Moved C#
databasetutorial
5 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.
  • K Offline
    K Offline
    KIDYA
    wrote on last edited by
    #1

    Hi.. Can anybody tel me how to find latest table created from database and display first in combo box list.

    N M J R 4 Replies Last reply
    0
    • K KIDYA

      Hi.. Can anybody tel me how to find latest table created from database and display first in combo box list.

      N Offline
      N Offline
      Noctris
      wrote on last edited by
      #2

      That depends on the database.. but most have a master db where you can query that type of information (Mysql, MS SQL) You should look at the vendors site how to query the master db/table and you should be there

      Do Or Don't, there is no "try catch ex as exception end try"

      1 Reply Last reply
      0
      • K KIDYA

        Hi.. Can anybody tel me how to find latest table created from database and display first in combo box list.

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Look into the system information/schema views in sql 2005+ and sysobject in earlier versions.

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • K KIDYA

          Hi.. Can anybody tel me how to find latest table created from database and display first in combo box list.

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

          See my answer above, you have this whole database thing wrong- you dont create new tables for entities - you create new rows within a table. If you add a timestamp to every row, its pretty darn easy to find the most recently created row.

          1 Reply Last reply
          0
          • K KIDYA

            Hi.. Can anybody tel me how to find latest table created from database and display first in combo box list.

            R Offline
            R Offline
            Rajesh Anuhya
            wrote on last edited by
            #5

            if u r using oracle go through this SQL> desc dba_objects; Name -------------------------------- OWNER OBJECT_NAME SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_TIME TIMESTAMP STATUS TEMPORARY GENERATED SECONDARY dba_objects has every objects create datestamp.. i think this may help u

            Rajesh B --> A Poor Workman Blames His Tools <--

            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