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. Is it possible to get the description of a sql server table ?

Is it possible to get the description of a sql server table ?

Scheduled Pinned Locked Moved C#
databasesql-serversysadminquestion
4 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.
  • J Offline
    J Offline
    jamesjk
    wrote on last edited by
    #1

    Hello everybody, I'm working on a data migration application. Actually I need to map each fields in an existing database to a new application's databse. For this purpose, is it possible to list the fields in the tables (which will be an unknown thing until the program is run.. u'll have only the database name & the table names) of both the databases(both databases being sql server). I need to permit the user to map the fields like below.. Database1 Database2 OldTable NewTable firstname ------------> fname LastName ------------> lname etc... Thanks in advance

    D S E 3 Replies Last reply
    0
    • J jamesjk

      Hello everybody, I'm working on a data migration application. Actually I need to map each fields in an existing database to a new application's databse. For this purpose, is it possible to list the fields in the tables (which will be an unknown thing until the program is run.. u'll have only the database name & the table names) of both the databases(both databases being sql server). I need to permit the user to map the fields like below.. Database1 Database2 OldTable NewTable firstname ------------> fname LastName ------------> lname etc... Thanks in advance

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

      You should be able to get the information you required from Information_Schema.Columns SELECT * FROM INFORMATION_SCHEMA.COLUMNS

      1 Reply Last reply
      0
      • J jamesjk

        Hello everybody, I'm working on a data migration application. Actually I need to map each fields in an existing database to a new application's databse. For this purpose, is it possible to list the fields in the tables (which will be an unknown thing until the program is run.. u'll have only the database name & the table names) of both the databases(both databases being sql server). I need to permit the user to map the fields like below.. Database1 Database2 OldTable NewTable firstname ------------> fname LastName ------------> lname etc... Thanks in advance

        E Offline
        E Offline
        Eduard Keilholz
        wrote on last edited by
        #3

        Erhm, yes this is possible, but I don't think you want to solve the problem this way. Have you tried converting the old db to the new db using DTS packages, it's a SQL Server thing and realy powerfull for converting data in such a manner..

        .: I love it when a plan comes together :. http://www.zonderpunt.nl

        1 Reply Last reply
        0
        • J jamesjk

          Hello everybody, I'm working on a data migration application. Actually I need to map each fields in an existing database to a new application's databse. For this purpose, is it possible to list the fields in the tables (which will be an unknown thing until the program is run.. u'll have only the database name & the table names) of both the databases(both databases being sql server). I need to permit the user to map the fields like below.. Database1 Database2 OldTable NewTable firstname ------------> fname LastName ------------> lname etc... Thanks in advance

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

          check this for getting list of all fields in a table http://www.cryer.co.uk/brian/sqlserver/howtolistallcolumns.htm[^]

          Regards Shajeel

          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