Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Token size exceeded error - Confused ??

Token size exceeded error - Confused ??

Token size exceeded error - Confused ??

Hey all,

I have a job tracking database designed so our work can track jobs done for clients.

I have a table with a Description field that is set to VARCHAR(30000) as oftern we keep a job open for a month and just keep adding to it and descriptions get quite lenghty and involved.

When I am conducting a database insert on some of the more larger descriptions I get the following error :
Dynamic SQL Error
SQL error code = -104
token size exceeds limit

Is there a way I can split the description insert into smaller tokens, or enlarge the token size or anything to get around this error.



RE: Token size exceeded error - Confused ??

Hi Brad,

Is this an

INSERT INTO ... VALUES ('Mega long description')


If so, I'd try using a prepared statement with parameters:

INSERT INTO ... VALUES (:description, ... )

Prepare the statement by calling .Prepare method (assuming Delphi)

ParamByName('description').AsString := ...

Alternatively, why not use a BLOB?

Martijn Tonies
Database Workbench - the developer tool for InterBase, Firebird, MySQL & MS SQL Server

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close