Skip to Content
author's profile photo Former Member
Former Member

Defining string as key in dictionary for DB2 database

I am converting from a Websphere environment to SAP NW. My DB2 database has strings in the keys, but when I define them in the NW dictionary I get "Dictionary Generation: SAPDBcheckWidth TABLENAME: index on BLOB, CLOB, LONGVARBINARY or LONGVARCHAR is not allowed". Anybody got any ideas? I have defined my database vendor as DB2_UDB in persistence.xml (in the EJB project), but I can't find anything in the dictionary project to tell it strings are OK!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 18, 2005 at 07:33 AM

    If you need indexes on string columns then the column's width must not exceed about 300 characters. If you only need '%' in the where but no indexes then the next threshold is at about 1000 characters. Any strings longer than that are usually mapped onto a variation of LOB, reducing the available operators to = and !=.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.