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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Text datatype not exceeding 8000 characters

Text datatype not exceeding 8000 characters

Scheduled Pinned Locked Moved Database
databasehelptutorialquestion
4 Posts 3 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.
  • R Offline
    R Offline
    Rajiya
    wrote on last edited by
    #1

    Hi, I have a stored procedure which is having a input parameter as TEXT datatype. I am passing a string to it whose length is 9000. It does not accept more then 8000 characters of the string. How to solve this issue? Is there any method in which i can increase the length of the datatype. or is there any other datatype whose datalength is more then 8000? Thanks, Riz

    K M 2 Replies Last reply
    0
    • R Rajiya

      Hi, I have a stored procedure which is having a input parameter as TEXT datatype. I am passing a string to it whose length is 9000. It does not accept more then 8000 characters of the string. How to solve this issue? Is there any method in which i can increase the length of the datatype. or is there any other datatype whose datalength is more then 8000? Thanks, Riz

      K Offline
      K Offline
      Krish KP
      wrote on last edited by
      #2

      to my knowledge 8000 is max. in SQL Server 2000

      Regards KP

      1 Reply Last reply
      0
      • R Rajiya

        Hi, I have a stored procedure which is having a input parameter as TEXT datatype. I am passing a string to it whose length is 9000. It does not accept more then 8000 characters of the string. How to solve this issue? Is there any method in which i can increase the length of the datatype. or is there any other datatype whose datalength is more then 8000? Thanks, Riz

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        If you're using classic ADO, you must use the adLongVarChar datatype for the parameter, and use AppendChunk to write the data to the parameter rather than simply assigning the Value property. For ADO.NET and the SQL Server data provider, use the SqlDbType.Text type.

        Stability. What an interesting concept. -- Chris Maunder

        R 1 Reply Last reply
        0
        • M Mike Dimmick

          If you're using classic ADO, you must use the adLongVarChar datatype for the parameter, and use AppendChunk to write the data to the parameter rather than simply assigning the Value property. For ADO.NET and the SQL Server data provider, use the SqlDbType.Text type.

          Stability. What an interesting concept. -- Chris Maunder

          R Offline
          R Offline
          Rajiya
          wrote on last edited by
          #4

          Hi, Thanks for ur reply.... I want to know how exactly to implement it in the stored procedure. Can u give me an example? It's very urgent. Thanks, Riz

          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