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. How to insert large amount of data into column of a table

How to insert large amount of data into column of a table

Scheduled Pinned Locked Moved Database
sharepointhelptutorial
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.
  • Y Offline
    Y Offline
    yuvachandra
    wrote on last edited by
    #1

    Hi all, I am using SQLServer2000, I am trying to insert large amount of data into column of a table but i found only part of the data getting inserted into the table. Then i have tried the following option to set the column size sp_tableoption 'testmail', 'text in row', '7000' After the above line get executed its better but still i am lagging behind to store total text .please help me some one Thanks in advance Yuva

    O P 2 Replies Last reply
    0
    • Y yuvachandra

      Hi all, I am using SQLServer2000, I am trying to insert large amount of data into column of a table but i found only part of the data getting inserted into the table. Then i have tried the following option to set the column size sp_tableoption 'testmail', 'text in row', '7000' After the above line get executed its better but still i am lagging behind to store total text .please help me some one Thanks in advance Yuva

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      the most data you can store in a row is 8000 bytes (so thats 8000 ascii charecters or 4000 unicode). If you need to store more than that you need to chop up the text and store it in multiple rows.

      C 1 Reply Last reply
      0
      • Y yuvachandra

        Hi all, I am using SQLServer2000, I am trying to insert large amount of data into column of a table but i found only part of the data getting inserted into the table. Then i have tried the following option to set the column size sp_tableoption 'testmail', 'text in row', '7000' After the above line get executed its better but still i am lagging behind to store total text .please help me some one Thanks in advance Yuva

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Change the datatype to text (or ntext for Unicode). Text stores 2^31 characters, and NText stores 2^30 characters.

        Deja View - the feeling that you've seen this post before.

        C 1 Reply Last reply
        0
        • P Pete OHanlon

          Change the datatype to text (or ntext for Unicode). Text stores 2^31 characters, and NText stores 2^30 characters.

          Deja View - the feeling that you've seen this post before.

          C Offline
          C Offline
          chandragupta k
          wrote on last edited by
          #4

          hi Pete O'Hanlon, I have used text data type only but it is not allowing me store whole text(Actually the text in the form of HTml) into my Database

          1 Reply Last reply
          0
          • O originSH

            the most data you can store in a row is 8000 bytes (so thats 8000 ascii charecters or 4000 unicode). If you need to store more than that you need to chop up the text and store it in multiple rows.

            C Offline
            C Offline
            chandragupta k
            wrote on last edited by
            #5

            hi originSH , Thanks for your reply but my requiremet is store all the date ito one column i cannot chop up teh thing because i am getting that text dynamically..The text in the form of html Thanks in Advance Chandra Gupta

            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