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. Insert Query

Insert Query

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

    Friends, I stored my 200 values in an array and that 200 values represent one record. It is easy to insert 'n' record, that i did N no. of times with MAX of 20 values but this is first time im supposed to insert this large no. of values. So donno how to do... HELP!!!

    D A P 3 Replies Last reply
    0
    • S sachees123

      Friends, I stored my 200 values in an array and that 200 values represent one record. It is easy to insert 'n' record, that i did N no. of times with MAX of 20 values but this is first time im supposed to insert this large no. of values. So donno how to do... HELP!!!

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

      I'd look at your database design and see if a table with 200 columns is really necessary. If it is, you can create an SP with 200 parameters or generate a massive insert statement (both of which are not good solutions!)

      1 Reply Last reply
      0
      • S sachees123

        Friends, I stored my 200 values in an array and that 200 values represent one record. It is easy to insert 'n' record, that i did N no. of times with MAX of 20 values but this is first time im supposed to insert this large no. of values. So donno how to do... HELP!!!

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        You could pass the values into the stored proc as xml and work from that.

        Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

        1 Reply Last reply
        0
        • S sachees123

          Friends, I stored my 200 values in an array and that 200 values represent one record. It is easy to insert 'n' record, that i did N no. of times with MAX of 20 values but this is first time im supposed to insert this large no. of values. So donno how to do... HELP!!!

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          I prefer a method that will handle generating the query and parameters automatically, that isn't hard-coded to any particular 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