Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Posts
    5

    Unanswered: Can't write longer string in the record

    I have a field which was varchar before but I changed it to text.

    But i can't write in it enough text as i wish. This field is important becouse it holds SQL senences which i parse latter in my application and than i execute it.



    it says <Long Text> and i can't enter any more characters.

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    You got more than 8000 bytes of data?

    Look up READTEXT WRITETEXT.

    Welcome to a whole new world of hurt.

    should've stayed with varchar(8000)
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  3. #3
    Join Date
    Jul 2003
    Location
    San Antonio, TX
    Posts
    3,662
    Each "statement" should easily fit into an 8000-character field. Add a table that would organize the statements into batches, then restructure your original table by adding FK from your BatchMaster, and a Statement Sequence field (what statement comes first, second, etc. in each batch) Ability to read/write text fields is good, but when there is no need...there is no need
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •