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. Web Development
  3. ASP.NET
  4. generate array

generate array

Scheduled Pinned Locked Moved ASP.NET
data-structures
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.
  • M Offline
    M Offline
    Member_3259094
    wrote on last edited by
    #1

    hi every buddy i have a table with single colums named id. and i want to change is column into array please reply some one

    rajeev kumar sharma vri software pvt. ltd. new delhi India

    C R 2 Replies Last reply
    0
    • M Member_3259094

      hi every buddy i have a table with single colums named id. and i want to change is column into array please reply some one

      rajeev kumar sharma vri software pvt. ltd. new delhi India

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      An array is not a valid datatype for an item in a database. Or do you mean you want to turn all those values into a single array ? Which bit are you stuck on ?

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • M Member_3259094

        hi every buddy i have a table with single colums named id. and i want to change is column into array please reply some one

        rajeev kumar sharma vri software pvt. ltd. new delhi India

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

        Do you mean SQL Array for temp use in stored procedures etc or scripting/programming array in application? and whats your platform. for SQL Array : Read following
        The ARRAY In SQL Server 2000 [^] In ASP.NET you can use dataset which will provide you the built in rows array for that column.

        Any systematic work reflects its significance for a long time. So let's discuss the best...

        M 1 Reply Last reply
        0
        • R rihdus

          Do you mean SQL Array for temp use in stored procedures etc or scripting/programming array in application? and whats your platform. for SQL Array : Read following
          The ARRAY In SQL Server 2000 [^] In ASP.NET you can use dataset which will provide you the built in rows array for that column.

          Any systematic work reflects its significance for a long time. So let's discuss the best...

          M Offline
          M Offline
          Member_3259094
          wrote on last edited by
          #4

          actualy i am working on asp.net with c# and i have generate a data table which contain the one column name id. and i want to generate an array which contains to values of that table (id)

          rajeev kumar sharma vri software pvt. ltd. new delhi India

          L 1 Reply Last reply
          0
          • M Member_3259094

            actualy i am working on asp.net with c# and i have generate a data table which contain the one column name id. and i want to generate an array which contains to values of that table (id)

            rajeev kumar sharma vri software pvt. ltd. new delhi India

            L Offline
            L Offline
            Leyu
            wrote on last edited by
            #5

            DataTable dt = yourdataset.Tables[0]; List ids = new List(); foreach(DataRow row in dt.Rows) { ids.Add(((int)row[0])); } //Now you have the list of ids from the table.

            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