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

Table

Scheduled Pinned Locked Moved Database
csharptutorial
8 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.
  • S Offline
    S Offline
    simworld
    wrote on last edited by
    #1

    How to get the column name/Field name from a particular Table. I want to list them in dropdownlist in C#

    P P I 3 Replies Last reply
    0
    • S simworld

      How to get the column name/Field name from a particular Table. I want to list them in dropdownlist in C#

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      Ever heard of Google[^]?

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      1 Reply Last reply
      0
      • S simworld

        How to get the column name/Field name from a particular Table. I want to list them in dropdownlist in C#

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        You need to provide more detail. What kind of database are you using?

        "I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon

        S 1 Reply Last reply
        0
        • S simworld

          How to get the column name/Field name from a particular Table. I want to list them in dropdownlist in C#

          I Offline
          I Offline
          imsathy
          wrote on last edited by
          #4

          SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'your table name'

          Sathy

          S 1 Reply Last reply
          0
          • P Paul Conrad

            You need to provide more detail. What kind of database are you using?

            "I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon

            S Offline
            S Offline
            simworld
            wrote on last edited by
            #5

            I am using SQL Server 2000.

            P 1 Reply Last reply
            0
            • I imsathy

              SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'your table name'

              Sathy

              S Offline
              S Offline
              simworld
              wrote on last edited by
              #6

              Thank u very much

              I 1 Reply Last reply
              0
              • S simworld

                Thank u very much

                I Offline
                I Offline
                imsathy
                wrote on last edited by
                #7

                Its a pleasure :)

                Sathy

                1 Reply Last reply
                0
                • S simworld

                  I am using SQL Server 2000.

                  P Offline
                  P Offline
                  Paul Conrad
                  wrote on last edited by
                  #8

                  I think you can get table characteristics by looking in the system tables. Don't quite have the info right infront of me at the moment. ---modified Never mind, imsathy got it :-D

                  "I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon

                  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