Datatype which takes more than 5000 characters

I want to have a column which can take more than 5000 characters. Which datatype can I have ? varchar2 is not working.
Please help me.

Pradeep_Warangal wrote:
I want to have a column which can take more than 5000 characters. Which datatype can I have ? varchar2 is not working.
Please help me.Varchar2 can have 32000 chars in PL/SQL. Are you looking for an SQL datatype? Then CLOB ist the answer.

Similar Messages

  • Light Switch 2011 "C#" How to allow filter which take more than one entry to take * and show all other entries?

    Dear All,
    I have created the following code which extended my filter functionality and allowed a to take more than one entry (Comma have to be inserted after
    each entry). 
    For example:
    "Country Filter" can take ----> Germany,Egypt,Holand<o:p></o:p>
    "City Filter " can take ---------> Berlin,Münster
    if (Country_PAR != null)
    String[] Country_Array = Country_PAR.Split(new Char[] { ','});
    query = from p in query where Country_Array.Contains(p.Hotel_Country) select p;
    if (City_PAR != null)
    String[] City_Array = City_PAR.Split(new Char[] {','});
    query = from p in query where City_Array.Contains(p.Hotel_City) select p;
    Now want to extend it more and say something like:
    If  * is included ---- > Give me all entries        
         ex. Ge*     This will give me everything which starts with Ge
    If <> is entred -----> Give me entries which are not equal to a certain entry
         ex. Country Filter = <> Germany          give me all other entries except Germany
    Thanks alot,
    Zayed

    Thanks your reply. I mean no one know my feeling. except if the new car is your. If Geek Squad can't install it. Just let me know and go. right? I ask many time? Are you ok to finish? He said yes. First time fail after 5 hours long wait and tow my car to Toyota repair. Second time said only take 20 to 30 minutes to program the key. but fail again after about 4 hours 30 minutes long wait and head light is not automatic turn on at night. I have to take a day off drive to Toyota repair. My time is money. wait there more than 10 hours and done nothing. 5 days no car and take the subway Bus and long walk. How do I feel? I m the customer. if without the customer. How you get pay? Geek Squad use my remote start and alarm and I can't return it. I loss time and money. My new car has a repair record. That is what Bestbuy want to do for the customer. Geek Squad work for Bestbuy. right? You are not just loss one customer. You will loss more and more than the remote start alarm cost. Bestbuy will not know? How come just 200$ remote start alarm and the 50$ module. Bestbuy don't want to reimburse. I m not tell you to pay me 5 days for rental car. why don't just want a happy ending? Bestbuy is big company. I m very small. 250$ it cost Bestbuy nothing. You can't let the customer loss money because you. right?

  • Display message wwhich is more than 72 characters

    Hi Experts,
    I wanna display message which is more than 72 characters.
    is there any way in ABAP to display such type of message?

    create message class, in message give & & & &.
    now you can pass the display message like this.
    message i000 with text-001 text-002 text-003 text-004.

  • Sending an email with more than 75  characters

    Please can you tell me, how i can send an email with more than 75 characters from a workflow. We need to send a link which has more than 130 characters.

    Hi Benjamin,
    You have a couple of options:
    Put your link into a container element and put that into your text instead of hardcoding it.
    Instead of the sendmail step, create a task based on SELFITEM.SENDTASKDESCRIPTION. This is exacly the same as the mail step minus the 'different' step editor in the builder. There you can create the text using the sapscript editor and join lines up.
    Have a look around OSS, there are some notes on this issue.
    Cheers
    Mike

  • Owa_text.vc_arr: can't handle the string with more than 4000 characters?

    In the Oracel Web Application Server 4.0 documment, it says
    about owa_text.vc_arr :Type vc_arr is table of varchar2(32767)
    index by binary_integer.
    I amusing PL_SQL with Oracle8i and OWA4.0 web server.I want to
    use owa_text.vc_arr to pass the multple line texts in my form.
    If the text length is less than 4000 characters, everything works
    fine.However when the texts are longer than 4000 characters but
    less than the max length 32767 characters, I got this error
    message:
    OWS-05101: Execution failed due to Oracle error 2005
    ORA-02005: implicit (-1) length not valid for this bind or define
    datatype.
    Owa_text.vc_arr is supposed to handle the string with more
    than 4000 characters, is it true? Could anyone tell me why? Any
    help will be greatly appreciated!!!
    Thanks very much.
    Helena Wang
    Here is the pl_sql procedure to create my form:
    PROCEDURE myform
    IS
    BEGIN
    htp.p('
    <form action="'||service_path||'helena_test.saveform3"
    method=post>
    <input type=hidden name=tdescription value="X">
    Input1: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    Input2: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    <input type=submit name=WSave value="Save">
    </form>
    END;
    /***** here is the pl_sql procedure which I use to save the
    form***/
    procedure saveform3(tdescription in owa_text.vc_arr,
    WSave in varchar2 default 'No')
    is
    len pls_integer;
    begin
    for i in 2..tdescription.count loop
    len := length(tdescription(i));
    htp.p(len);
    htp.p(tdescription(i));
    end loop;
    end;

    Helena, I think you might get a better response either from the SQL-PL/SQL forum, or perhaps the Portal Applications forum - both of these tend to have folks very familiar with PL/SQL and the OWA packages.
    This forum is on Web services based on SOAP, WSDL and UDDI. These can be PL/SQL based but typically don't use the mod_psql or OWA web solution.
    As a pointer, I suspect you may already be familiar with, but just in case, you can always take a look at chapter 3 of the OAS documentation, "Developer's Guide: PL/SQL and ODBC Applications" where they go through a number of examples using parameters. See:
    http://technet.oracle.com/doc/appsrvr4082/guides/plsql.pdf
    Hope this or folks from the other list can help.
    Mike.

  • Inserting data with more than 255 characters in to MSACCESS through JDBC

    Hi All,
    I have developed a product using servlets,JDBC,HTML.The backend is MS access database.
    I have to provide an option for the user to key in more than 255 characters of data in the textarea & then store it in the access database.But i read that access ODBC driver has a limit of 255 characters.Is this correct.
    I tried changing the Datatype of the field from text to Memo field in MS ACCESS.But when i insert the data using setString method of the PreparedStatement ,it's giving the following SQL exception:SQLException caught:[Microsoft][ODBC Microsoft Access Driver]String data, right truncated (null)
    How do i let an user key in more than 255 characters.Can somebody help me on this please ASAP as this is a very crucial issue which i need to solve by tomorrow.
    Thanks in Advance
    GCR

    hi rashmi,
    HOw bout using CLOB facility to store such large strings?? try it.
    Cheers,
    -Jer

  • Storing more than 2000 characters in a varchar2 column in Oracle 11g?

    We have a table in Oracle 11g with a varchar2 column. We use a proprietary programming language where this column is defined as string. Maximum we can store 2000 characters (4000 bytes) in this column. Now the requirement is such that the column needs to store more than 2000 characters. The DBAs don't like BLOB, CLOB or LONG datatypes for maintenance reasons.
    There are 2 solutions I can think of -
    1. Remove this column from the original table and have a separate table for this column and then store each character in a row, in order to get more than 2000 characters. This table will be joined with the original table for queries.
    2. If maximum I need is 8000 characters, can I just add 3 more columns so that I will have 4 columns with 2000 char each to get 8000 chars. So when the first column is full, values would be spilled over to the next column and so on.
    Which one is a better and easier approach? Please suggest.

    Visu - Some people also do not like to use LOBs because of difficulty in reclaiming space and ever increasing LOB segments. Some of these problems were caused by Oracle bugs (eg, Bug 2944866 Free space in LOB table / tablespace not reused with ASSM, Bug 3019979 Space may not be reused efficiently in a LOB segment) - albeit in 9.2. I've seen a few bug reports for similar things in 10.2 (don't have the references). Still, if there is a workaround/patch is this reason enough to steer the application development into a new direction?

  • Why can't  owa_text.vc_arr  handle the string with more than 4000 characters?

    I am using PL_SQL with Oracle8i and OAS 4.0 web server.I want to
    use owa_text.vc_arr to pass the inputs in serval text areas in the form on a web application.
    If the input string length is less than 4000 characters, everything works fine.However when the strings are longer than 4000 characters but less than the max length 32767 characters, I got this error message:
    OWS-05101: Execution failed due to Oracle error 2005
    ORA-02005: implicit (-1) length not valid for this bind or define datatype.
    In the Oracle Application Server 4.0 documment, it says
    about owa_text.vc_arr :Type vc_arr is table of varchar2(32767)
    index by binary_integer. It means that owa_text.vc_arr can handle multiple strings and each string can have up to 32767 single byte characters, is it right?
    Owa_text.vc_arr is supposed to handle the string with more
    than 4000 characters, is it true? Could anyone tell me why? Any
    help will be greatly appreciated!!!
    Thanks very much.
    Helena Wang
    Here is the pl_sql procedure to create my form on the web:
    PROCEDURE myform
    IS
    BEGIN
    htp.p('
    <form action="'||service_path||'helena_test.saveform3"
    method=post>
    <input type=hidden name=tdescription value="X">
    Input1: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    Input2: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    <input type=submit name=WSave value="Save">
    </form>
    END;
    /***** here is the pl_sql procedure which I use to save the
    form***/
    procedure saveform3(tdescription in owa_text.vc_arr,
    WSave in varchar2 default 'No')
    is
    len pls_integer;
    begin
    for i in 2..tdescription.count loop
    len := length(tdescription(i));
    htp.p(len);
    htp.p(tdescription(i));
    end loop;
    end;

    The maximum size of a VARCHAR2 field in Oracle 8i is 4000 bytes.
    you'll ned to use a LOB type (or LONG if you prefer the old way)

  • Dataype for more than 4000 characters

    Hello,
    I ve got an Oracle 9i Database with an Table which has an Collumn defined as varchar2.
    Now I found, that's still not enough for my application.
    I tried to delete the Table and switch the Data Type to long. Other than expected I'm still not able to insert more than 4000 characters.
    Any ideas?
    Thomas

    Hi Thomas,
    You can look at the sample based on LOB Datatype at this location.
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm
    There is a method called 'loadSamples' in the source file of this sample(http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html)
    This is the way you insert data into a BLOB or CLOB.
    You can't directly insert data > 4000 characters in a BLOB or CLOB. you need to first create an empty BLOB or CLOB and then insert data into it.
    Regards,
    Anupama

  • External table is not accepting more than 255 Characters

    Hi,
    I'm new to External table.. Somehow External table is not accepting more than 255 Characters even though I'm using VARCHAR2(4000 BYTES).. Can you please help me..
    CREATE TABLE DM_CL_ExterTbl_Project
    project_name VARCHAR2(80 BYTE),
    project_id VARCHAR2(20 BYTE),
    work_type VARCHAR2(100 BYTE),
    work_description               VARCHAR2(4000 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY UTL_FILE_DIR
    ACCESS PARAMETERS
    records delimited by '#(_@p9#' SKIP 1
    logfile 'pp.log'
    badfile 'pp1.bad'
    fields terminated by ','
    OPTIONALLY ENCLOSED BY '"' and '"'LDRTRIM
    missing field values are null
    REJECT ROWS WITH ALL NULL FIELDS
    project_name,
    project_id,
    work_type,
    work_description
    LOCATION (UTL_FILE_DIR:'TOG_Data_Extract.csv')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING
    Thanks in advance..
    ~~Manju

    I got the asnwer.. In the filed list I have to specify the datatype & it's Size otherwise by default it will take CHAR(255)..
    work_type CHAR(4000) solved the problem..!!

  • How do I create my own favorite template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to templates, which take more memory. I have a large slideshow, and need all the space I can get

    First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn.  I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • How to display more than 132 characters in a smartform

    Hi Experts,
    I am reading notes/text entries by calling read_text and then passing them in a variable. I want to display the notes. But even after declaring the variable as  LINE2048, it is displaying only 255characters as output length in smartform.
    My code:
    TYPES: BEGIN OF TYP_FINAL,
             PARTNER_NO      TYPE BU_PARTNER,         "Partner No.
            OBJECT_ID       TYPE CRMT_OBJECT_ID_DB,  "Object ID
            PROCESS_TYPE    TYPE CRMT_PROCESS_TYPE,  "Activity Type
           ACTUAL_NOTE     TYPE LINE2048,           "Actual Notes
           END OF TYP_FINAL.
    data : T_FINAL           TYPE STANDARD TABLE OF TYP_FINAL,
              WA_FINAL          TYPE TYP_FINAL.
    data:  v_actualnote     TYPE LINE2048.
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                 CLIENT                        = SY-MANDT
                  ID                            = C_0002
                  LANGUAGE                      = sy-langu
                  NAME                          = l_name1
                  OBJECT                        = C_BUT000
                TABLES
                  LINES                         = t_line
               EXCEPTIONS
                 ID                            = 1
                 LANGUAGE                      = 2
              IF SY-SUBRC = 0.
               clear: v_accountnote.
               LOOP AT T_LINE INTO WA_LINE.
                 CONCATENATE v_accountnote wa_line INTO v_accountnote SEPARATED BY space.
                 clear: wa_line.
               ENDLOOP.
              wa_final-account_note = v_accountnote.
              clear: v_accountnote.
             ENDIF.
    On the smartformm side, under main window->loop->text(to display the variables).
    How to display more than 255 characters in a smartform.
    Regards,
    Sangeeta.

    why the heck would you use read_text when you want to print a text/note on a form?
    in SAP-Script we use the "INCLUDE"-Statement for this.
    and in smartforms a Text-node of type 'I'.
    you can not write all in one line and expect the system to handle this like a floating text.
    one character takes a cretain amount of space (varying for different characters and font and font sizes).
    you Page has a certain width, so where is the miracle in the thesis that on a sheet of paper with a certain width just a certain amount of characters will fit?

  • Using Cast('' to XML) when my stringb is more than 8000 characters

    I have some sql code that is generated dynamically to build a grid.  the xml string that is put together in my sp is dynamic and it just so happens I have a situation where the xml string it put together is more than 8000 characters so when I run my
    query I get 'Msg 9413, Level 16, State 1, Line 1 XML parsing; Line 1, character 8000, A string literal was expected.'
    below is the sql that my sp has built.  any ideas on how I can get it to work? 
    The problem line is the one with '</xs:schema>'as xml)'
    Thanks
    SELECT CAST('<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"  attributeFormDefault="qualified"
    elementFormDefault="qualified">' + 
    '<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">' +
    '<xs:complexType>' +
    '<xs:choice minOccurs="0" maxOccurs="unbounded">' +
    '<xs:element name="BOMVerifyValue">' +
    '<xs:complexType>' +
    '<xs:sequence>' +
    '<xs:element name="BOMVerifyValueID" type="xs:int" minOccurs="0" msprop:Visible="0" msprop:Mandatory="1" />' +
    '<xs:element name="Row" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:integer" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="BOMVerifyID" msprop:State="0" msprop:Visible="0" msprop:BestFitColumnMode="2" type="xs:string" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeX" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeY" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeZ" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="HasErrors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:boolean" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="Warning" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" msprop:ReadOnly="true" type="xs:boolean" minOccurs="0"  msprop:Mandatory="1"
    />' +
    '<xs:element name="RMK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4041" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4046" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4051" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROT2" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4071" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FR-TK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4076" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4081" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDrawers" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4086" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDFBox" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4091" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4096" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawer" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4121" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BT" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4126" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDF" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4136" type="xs:string" minOccurs="0" />' +
    '<xs:element name="EL" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4161" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ER" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4166" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4196" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-Back" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4206" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BTBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="7979" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8024" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8032" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeft" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8190" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRight" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRightButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8413" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeftButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8480" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDFBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9204" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9262" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawerBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9304" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoorsFHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9408" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10151" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10172" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_FrontBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_BackFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-BackFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19207" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROTOneeachside" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19422" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLoose" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19733" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLooseOne" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19737" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-LBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-RBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20335" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20339" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTKFE-LFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20703" type="xs:string" minOccurs="0" />' +
    '</xs:sequence>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:choice>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:schema>'as xml)
     SELECT * FROM (
     SELECT ROW_NUMBER() OVER (ORDER BY [bomvv].[BOMVerifyID]) as Row 
         , [BOMVerifyValueID] 
         , [bomvv].[BOMVerifyID] 
         , [bomv].[Size_X] + [SizeX] as [SizeX] 
         , [bomv].[Size_Y] + [SizeY] as [SizeY] 
         , [bomv].[Size_Z] + [SizeZ] as [SizeZ] 
         , [HasErrors] 
         , CASE WHEN ISNULL([bomvtl].[BOMVerifyTransactionLogID], 1) <> 1 
                THEN CASE WHEN ISNULL([csp].[CabinetServiceProcessID], 1) <> 1 
                          THEN '0' 
                          ELSE CASE WHEN ISNULL([bomvv].[UpdateDate], '1/1/2001') > ISNULL([bomvtl].[DateAdded], '1/1/2001') THEN 0 ELSE 1 END 
                     END 
                ELSE '0' 
                END as [Warning] 
         , CASE WHEN CHARINDEX( '4041',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [RMK]
         , CASE WHEN CHARINDEX( '4046',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK]
         , CASE WHEN CHARINDEX( '4051',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTK]
         , CASE WHEN CHARINDEX( '4071',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ROT2]
         , CASE WHEN CHARINDEX( '4076',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FR-TK]
         , CASE WHEN CHARINDEX( '4081',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDoors]
         , CASE WHEN CHARINDEX( '4086',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDrawers]
         , CASE WHEN CHARINDEX( '4091',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDFBox]
         , CASE WHEN CHARINDEX( '4096',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHD]
         , CASE WHEN CHARINDEX( '4121',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [OneDrawer]
         , CASE WHEN CHARINDEX( '4126',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BT]
         , CASE WHEN CHARINDEX( '4136',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDF]
         , CASE WHEN CHARINDEX( '4161',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [EL]
         , CASE WHEN CHARINDEX( '4166',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ER]
         , CASE WHEN CHARINDEX( '4191',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FE-L]
         , CASE WHEN CHARINDEX( '4196',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FE-R]
         , CASE WHEN CHARINDEX( '4206',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-Back]
         , CASE WHEN CHARINDEX( '7979',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BTBack]
         , CASE WHEN CHARINDEX( '8024',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELBack]
         , CASE WHEN CHARINDEX( '8032',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERBack]
         , CASE WHEN CHARINDEX( '8190',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPLeft]
         , CASE WHEN CHARINDEX( '8195',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPRight]
         , CASE WHEN CHARINDEX( '8413',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPRightButt]
         , CASE WHEN CHARINDEX( '8480',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPLeftButt]
         , CASE WHEN CHARINDEX( '9204',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDFBack]
         , CASE WHEN CHARINDEX( '9262',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDBack]
         , CASE WHEN CHARINDEX( '9304',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [OneDrawerBack]
         , CASE WHEN CHARINDEX( '9408',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDoorsFHD]
         , CASE WHEN CHARINDEX( '10151',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTKFE-R]
         , CASE WHEN CHARINDEX( '10172',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTKFE-L]
         , CASE WHEN CHARINDEX( '19191',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-FE-R]
         , CASE WHEN CHARINDEX( '19195',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-FE-L]
         , CASE WHEN CHARINDEX( '19199',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK_FrontBack]
         , CASE WHEN CHARINDEX( '19203',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK_BackFE-R]
         , CASE WHEN CHARINDEX( '19207',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-BackFE-L]
         , CASE WHEN CHARINDEX( '19422',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ROTOneeachside]
         , CASE WHEN CHARINDEX( '19733',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDSendDoorsLoose]
         , CASE WHEN CHARINDEX( '19737',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDSendDoorsLooseOne]
         , CASE WHEN CHARINDEX( '20199',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELFE-LBack]
         , CASE WHEN CHARINDEX( '20203',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERFE-RBack]
         , CASE WHEN CHARINDEX( '20335',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELFE-L]
         , CASE WHEN CHARINDEX( '20339',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERFE-R]
         , CASE WHEN CHARINDEX( '20703',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTKFE-LFE-R]
      FROM [CabinetDesigner].[BOMVerifyValue] bomvv 
     INNER JOIN [CabinetDesigner].[BOMValue] bomv 
     ON [bomv].[BOMID] = [bomvv].[BOMID] 
     AND [bomv].[EndDate] IS NULL 
     LEFT OUTER JOIN [CabinetDesigner].[BOMVerifyTransactionLog] bomvtl 
     ON [bomvtl].[BOMID] = 9143
     AND [bomvtl].[Processed] = 0 
     LEFT OUTER JOIN [CabinetService].[CabinetServiceProcess] csp 
       ON [csp].[BOMVerifyTransactionLogID] = [bomvtl].[BOMVerifyTransactionLogID] 
      AND [csp].[BOMVerifyID] = [bomvv].[BOMVerifyID] 
     WHERE [bomvv].[BOMID] = 9143
     AND [bomvv].[EndDate] IS NULL 
     ) xx 
     FOR XML PATH('BOMVerifyValue'), TYPE)
     FOR XML PATH('NewDataSet')

    Each of those segments is a varchar with some number up to 8000 and when you concatenate it, you get a varchar(8000).
    If you remove the single quotes and plus signs and create a single string, you will get a varchar(max) which works.
    Or you can concatenate an empty varchar(max) variable:
    declare @t varchar(max) = ''
    SELECT CAST(@t + '<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">' +
    '<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">' +
    '<xs:complexType>' +
    '<xs:choice minOccurs="0" maxOccurs="unbounded">' +
    '<xs:element name="BOMVerifyValue">' +
    '<xs:complexType>' +
    '<xs:sequence>' +
    '<xs:element name="BOMVerifyValueID" type="xs:int" minOccurs="0" msprop:Visible="0" msprop:Mandatory="1" />' +
    '<xs:element name="Row" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:integer" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="BOMVerifyID" msprop:State="0" msprop:Visible="0" msprop:BestFitColumnMode="2" type="xs:string" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeX" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeY" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeZ" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="HasErrors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:boolean" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="Warning" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" msprop:ReadOnly="true" type="xs:boolean" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="RMK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4041" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4046" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4051" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROT2" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4071" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FR-TK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4076" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4081" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDrawers" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4086" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDFBox" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4091" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4096" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawer" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4121" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BT" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4126" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDF" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4136" type="xs:string" minOccurs="0" />' +
    '<xs:element name="EL" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4161" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ER" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4166" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4196" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-Back" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4206" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BTBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="7979" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8024" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8032" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeft" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8190" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRight" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRightButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8413" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeftButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8480" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDFBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9204" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9262" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawerBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9304" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoorsFHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9408" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10151" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10172" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_FrontBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_BackFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-BackFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19207" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROTOneeachside" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19422" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLoose" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19733" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLooseOne" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19737" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-LBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-RBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20335" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20339" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTKFE-LFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20703" type="xs:string" minOccurs="0" />' +
    '</xs:sequence>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:choice>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:schema>'as xml)
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • How to accomodate more than 255 characters in character field

    HI All
    i need to accomodate more than 255 characters in character field. How can i do that ?
    thanks in advance!!!

    Hi,
    You can try the following things:
    1. Use a datatype STRING and check it will work.
    2. In se11 transaction goto datatype and search for char* in data elements.
    You will find predefined data types ,you can make use of it.
    For eg. char2000,char3000,char4000 etc.
    Hope this will help.
    Regards,
    Nitin.

  • Unable to read more than 255 characters in a string data type.

    Hello,
    I am using Crystal Reports version 11.5.8.826 to generate reports from databases such as MS-Excel & BaaN.
    In Excel, there are records which carry string lengths of more than 255 characters. All though the fields are getting displayed in the report, the data being displayed gets truncated once it reaches a length of 255 characters.
    Kindly provide me with a solution this problem.
    Regards

    Hello Manish,
    I know that older versions of Crystal (Crystal 10 and older ) had a limitation of only 256 Characters for a string value.  You should be able to use this code to get what  you need. 
    We were successfully able to print out the Declaration of Independence through a Crystal report using something very similiar to this.
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Shared StringVar Array strings;
    Shared NumberVar arrayMax := 1;
    Shared NumberVar maxLength := 250;
    Shared BooleanVar firstTime := true;
    Redim strings[arrayMax];
    strings[1] := u201Cu201D;
    u2018done!u2019
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Here is my main loop that I used in the group header:
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    WhilePrintingRecords;
    Shared StringVar Array strings;
    Shared NumberVar arrayMax;
    Shared NumberVar maxLength;
    Shared BooleanVar firstTime;
    Local StringVar enteredString;
    Local NumberVar lenStr;
    Local NumberVar lenArr;
    Local NumberVar lenLeft;
    enteredString := [Field Name];
    enteredString := IIF(firstTime,enteredString, u201C, u201D & enteredString);
    firstTime := false;
    lenStr := Length(enteredString);
    lenArr := Length(strings[arrayMax]);
    lenLeft := maxLength u2013 lenArr;
    if (lenLeft >= lenStr) then
    strings[arrayMax] := strings[arrayMax] & enteredString;
    u201D
    else
    strings[arrayMax] := strings[arrayMax] & left(enteredString, lenLeft);
    arrayMax := arrayMax + 1;
    redim preserve strings[arrayMax];
    strings[arrayMax] := u201Cu201D;
    strings[arrayMax] := strings[arrayMax] & right(enteredString, lenStr u2013 lenLeft);
    u201D
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    and then to display the different sets in the text area. I would have one of these for every element I need displayed and change the display number variable.
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Shared StringVar Array strings;
    Shared NumberVar arrayMax;
    Local NumberVar displayNumber := [element in array];
    if(arrayMax >= displayNumber) then
    strings[displayNumber];
    else
    u201D;
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    I like this version better because the array is completely dynamic. It can be as big or as small as it needs to be.  There is always room for optimizations.  But hopefully this will get you started on the right path.
    Jenny

Maybe you are looking for