number of words and the release of n words in string

Hello. I use the following script to output n number of records of a description string "longdescription" - type varchar 8000chrs in sql server 2000

< cfset teaser = ">
< cfset temp longdescription = >
< CFLOOP from = "1" to = "26" index 'i' = >
< cfset teaser =
ListAppend (teaser, ListFirst (temp,' '),' ') >
< cfset temp = ListRest (temp,' ') >
< / CFLOOP >
#teaser #.

It works without problem until I want to display a large number of records on a page, it takes 10 seconds to display records with a fairly long description (2000 characters +) 60, (it's definitely the only factor during the long wait as eliminated all others) can anyone think that of any ways alternatives/functions to more effectively , keeping in mind, I don't want to put an end to the chain on a split Word

Thank you very much

Oli

Hi Dan, thanks for the reply, the 'left' function works a treat, and thanks to your pointers on this one, I did a bit of googleing and found some info on sql do all the work, goes it the word count/dear one loop and comes the number of intelligent characters space, while sql and fast v - soft!

SELECT LEFT (longdescription, CHARINDEX (' ', longdescription, 280)) as shorterdescription, table

see you soon

Tags: ColdFusion

Similar Questions

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • 13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. unplugged

    13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. disconnected the battery and security cordon mag, maintained hold button / stop for 5 seconds, nothing. Another SMC reset and it is the only way Mac powered on that she has no back light for the keyboard and the fan works on high all the time, please can someone HELP, thanks.

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • upgrade from windows 7 starter edition to professional b and I want to go back to the starter, how can get on this subject and also the number of activation and the production of my Starter how do I get it?

    I updated level of windows 7 starter edition to professional but I want to go back to the starter. How do I go about it. I also want to know how can I get my product number and the activation number.

    New computers coming often pre-installed with Windows 7 have what is called a recovery partition. This is used to reinstall an operating system in the case of a system failure. To access it, you need to start when you start your computer by pressing a function key. This can be either F1, F2, F9, F10, F11, F12 key DEL or tab. See the manual that came with your PC for instructions on how to reinstall Windows.

    This is how the recovery partition is available for the most popular brands

    For Dell, press CTRL + F11 directly after switching on the device

    For HP, press F11 directly after switching on the device

    For Toshiba, press and hold "0" BEFORE and during the power upward

    For Acer, press and hold ALT + F10, as soon as you see the logo

    For Samsung: Press the F4 key to the Samsung logo when you turn first.

    For Asus, press F9, as soon as you see the Asus logo.

    Advent, restart your computer. Then, press F10 repeatedly until the message "Starting system recovery"

  • View the number of paths and the political path for each data store

    Hi all

    Seem to be stuck on this one. and all that seems to be able to find through topis and scripts for the air path setting. All I have to do is list each data store to its policy of access road and the number of path for the data store on the host computer.

    I'm gussiing it uses the get-vmhoststorage cmdlet?

    Any help much appriciated.

    Phil

    Try something like this

    Get-VMHost | %{
         $esxImpl = $_
         $_ | Get-ScsiLun | where {$_.LunType -eq "Disk"} | %{
              $_ | Select @{N="HostName";E={$esxImpl.Name}},
              @{N="Path";E={$_.CanonicalName}},
              @{N="Policy";E={$_.MultiPathPolicy}},
              @{N="Number";E={($_ | Get-ScsiLunPath).Count}}
         }
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • The serial number has letters and the Acrobat won't take it.

    I downloaded the student and teach acrobat to my computer.  I have the serial number, but there lettersin the beginning.  Licensing of acrobat accepts no letters, so there is something wrong here.  Thoughts?

    You must contact Adobe Support by chat or phone when you have the serial number and activation problems.

    Here are some links to help get in touch:

    http://www.Adobe.com/support/chat/ivrchat.html

    http://www.Adobe.com/support/download-install/supportinfo/

  • Number of question and the navigation sequence.

    Hello and thanks in advance for any help anyone can provide.

    I am using Captivate 5.5, and part of the project is a questionnaire sequence drag-and-drop slide. I have included the ability to go back, because I want the user to be able to go back in the previous section and check the information if they want to. The issue is set to infinite attempts and three levels of failure. Questions are optional and the issue has a clear and a "Skip" button as well as back and submit.

    The problem: when I test the project, I can start the question and use the back button and return to the issue and that works very well. But when I not properly answer the question and THEN use the back button to review previous slides and then return to the question, I am more able to drag and drop the answers. The grey indicator no longer appears, and the answers cannot be moved. I can still use the submit button, but because I can not change the order of response is always bad. I can use the back button, but the issue never becomes mobile. I can use the "Clear" button, but it does nothing. I can skip the question, but it is not very useful because I would like the user to be able to answer the question after reviewing the information and return.

    I don't know about the issue of the scope of quiz, and I click the buttons set up at the beginning and end of the project that are included in the quiz so that I can not leave the scope quiz and mess things this way. But nothing I try seems to correct this problem.

    To sum up, I have a question of sequence, but once the user responds incorrectly and uses then the back button to review information, reverting to the question after it makes the issue frozen somehow, unable to move the responses in the proper order, even if the buttons still work.

    Thank you once again if someone can help me solve this problem!

    I'm really sorry, but that's the way the Question slides are designed to CP5: the number of attempts, you allow the Question level must be exhausted when the user is on the slide. As soon as you leave the question slide will be blocked. Several attempts on the level of play will be always available if you don't let the scope of quiz, but this can be done after completing the quiz, and all responses will then be those deleted, correct as incorrect. This changed to COP6, where sanitation is possible (just answered today such a question in another thread here), and you can access a slide contained a question slide, go back and change the answer.

    Your goal in CP5 is possible if you create custom question slides, but then there is the problem that drag & drop is not available in native mode as you have in the default sequence Question slide.

    Lilybiri

  • How to display the number of dynamics and the progress bar graphic on the title of the region

    Hello

    I have several show/hide parts of a report on a dashboard page. When the user comes to this dashboard page, it see areas collapsed and a status appropriate for each region and click on the region concerned the status listed in the title bar of region-based. Each region show different reports as "Exits", "Tasks", "Communiqué of progress" etc., for example, the user want to see the number of questions and tasks as a number displayed on the side right of the 'from', 'Tasks' area, in the same line as the title of the region. In addition, the user wants to see a progress bar graphic of liitle for the region 'Progress of the liberation' displayed on the right side of the area, in the same line as the title of the report. I have the return function to get these numbers and the graphic progress bar, but do not know how to post them on the right side of the area in the same line as the title of the region. all the ideas are really appreciated.

    Thanks for your time,
    Surya

    Seems interesting. Could create an example on apex.oracle.com experiment?

    Try this approach:

    Create an item hidden in each region to receive these values of synthesis (e.g. P1_DASH_TASK_COUNT) and calculate them the or some functions in regions before calculations.

    These values using the notation of substitution in the region of reference titles:

    Tasks &P1_DASH_TASK_COUNT.
    

    This can then be styled with CSS to get the look required, starting with:

    .dash-summary {
      float: right;
    }
    

    Exactly what is required in the CSS will depend on the theme/template used, why it would be a good idea to see on apex.oracle.com.

  • After the launch and the release of Cisco close Windows loses the functionality of micro.

    If I run the Cisco close Windows application, I lose the microphone feature. I understand from the client accesses the pair with the SX camera microphone.

    But if I left out the functionality of client micro does not. I need to restart my computer for the features come back.

    No reason as to why this is happening?

    This looks like a driver problem. First of all, try to see if you can find a newer audio driver, may also update drivers for related equipment such as the dock and the chipset.

    If this does not help, you can try to see if disabling exclusive mode. If off exclusive mode help the issue, but makes it impossible for you to connect to the codec, check all the settings recording. You may have to disable all effects microphone such as the cancellation of the echo for your card to work without exclusive mode.

    Comments on how you price and information about what hardware you use, would be great if we can help others in your situation as well as possible.

  • How can I disable the intro and the release of her during the opening or closing of Firefox? I don't remember add this neusance.

    I have disabled all my Add on, looked sound in everything: config and there is always this annoying noise set up by something internal, hidden or forgotten as a parameter maybe external? I can't turn off.

    I also checked my Win 7 system sounds and that is not the problem as it only happens with Firefox. I've uninstalled and reinstalled without effect. Help, please. (It was also with MS Word, but stopped after that change system sounds to something and then against zero for the opening of the programs but the noise persists in Firefox)

    OH YOU WON'T BELIEVE IT!

    I RECOGNIZED THE SOUND AS THAT OF THE SOUNDS THAT IONO SYSTEM MECHANIC PLAYS WHEN CHANGING POWER MANAGEMENT. I DISABLED "PLAY a SOUND WHEN THE CHANGE of REGIMES AND V O I L! ALL SORTED! Thank you. I'M ON THE WRONG FORUM! LOL I'LL COMPLAIN to THEM! THANK YOU FOR YOUR PATIENCE. BUY

  • Number of points and the number of plots for table and graph

    Hi guys,.

    Can someone explain to me why I get when I run the number Vi 1 2 plots for each table and graph with 6 points, but when I run vi 2 I get 4 locations with 1 point each run assuming that the same logic applies to two screws

    Thank you.

    When wiring of the paintings in the graphics, it is assumed that each line are several points of land.

    You must convert the 2D table or right-click on the graphic and select "convert table.

  • Download Design &amp; Web Prem CS6, cannot be installed because the serial number is CS6 and the drop down choice stop at CS5.5

    CS6 serial number is a valid number, but the products on the list of installation which stops at CS5.5. Anyone know where I can find the link that will allow me to install 6 worm

    Looks like you install a version of the CS6 upgrade and it asks you to provide information about the eligible previous version you are upgrading.   After you enter the serial number of the CS6, you select the older version from the list, and then enter the serial number of the previous version to prove that you are eligible to use CS6.  See the following...

    Error "this serial number is not for a product calling it" | CS6, CS5.5, CS5

    http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-qualifying-product.html

  • How to get the first 6 digits and the last 4 digits of a string?

    Greetings people.

    A small question and probably quite simple for a lot of guys out there.

    I have a string which can be anywhere between 15 and 20 characters (not a fixed length)

    I can't be divided into 3 segments.
    Segment 1 : 123456 ( 6 digits )
    
    Segment 2 : Everything else in the string from where Segment 1 ends (+1) and Segment 3 begins (-1).
    
    Segment 3 : 1234 ( 4 digits )
    Any help is appreciated!

    Thank you
    select substr (str, 1, 6)
         , substr (str, 7, length (str) -10)
         , substr (str, -4)
      from test
    
  • Change the number of VCPUs and memory

    How to change the number of VCPUs and the amount of memory to a computer the PowerCLI virtual?

    Steve is of course correct, you can use the Set-VM cmdlet to do this. But I suspect that entry PowerCLI reference online is a little more readable.

    An example

    Get-VM MyVM | Set-VM -MemoryMB 4096 -NumCpu 2
    

    See the xtrvirt VMware hot-add memory/CPU support for what is supported on what guest operating system.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • PXI-5112 with XP, LV 2010 (and the determination of review)

    Just found an old PXI-5112. I could do great with this card things if I could make it work.

    When I first plugged it to my PXI chassis, it was detected in MAX as a device of NOR-DAQ traditional with the latest version of NOR-DAQ traditional (7.4.4). However, when I tried to open a test Panel on this subject, I received a message that the device "failed the test". If I open the Panel test in any case, I get an error-10840 (soft error).

    I called OR support on this subject and the engineer found this article in the knowledge base for me:

    http://digital.NI.com/public.nsf/allkb/E956B50E8E0FC44E86256B030062CA2E

    I then tried to determine my Board review. I read the first issue I've found which corresponded to the model. It was on a sticker on the side rear of the Council and read "702864 A-01". This vignette, we determined that my Board is A revision.

    I tried following the advice that knowledge base article and install OR-DAQ 6.7.0 and 1.6 NO-SCOPE. With this combination, I can load up the SCOPE screws with LV 8.2.1, but when I try to run an example VI on my device, "DAQ::6", it fails to initialize the jury with "method or function not defined", or something like that. With NEITHER-DAQ 6.8.1 and 1.6 NO-SCOPE, I get a lot of impossible to find DLL errors attempting to perform the SCOPE of EIS. With NEITHER-DAQ 7.4.4 and 1.6 NO-SCOPE, I get the same old "Undefined function or method. If I try to run the VI on the wrong channel, like "DAQ::1", I get 'Device does not exist', he seems to recognize the device, just not being able to do something with it.

    I'm about to give up on this, but I just realized that there are FIVE different numbers printed on my Board which match the pattern in this knowledge base article.

    White sticker on chip on the back: 702864A - 01 Copyright 2000 NI

    Yellow sticker on chip on the back: 703058A - 01

    Printed in black on the login Panel: C 186030-01 REV1

    Printed in white on the back of the PCB: 184196E-01

    Printed in white on the front of the PCB: ASSY184194E-01

    There is also a label with bar code with C3297D, which I think is the serial number. The guy NOR tried searching but couldn't find anything.

    An interesting thing in particular on these numbers is that the ASSY184194E-01 contains the same exact number that is given as an example in this article in the knowledge base for a tray of Rev E: 184194E-01

    I have two questions, if anyone can help:

    1. does anyone here have a PXI-5112, Rev A or one E, in no case to work in Windows XP?

    2. which one of these numbers should I trust to identify revision of my Board? It seems like that might be either A, C or E.

    Thank you!

    Max

    Hey Maxwell,

    You are right that the serial number is C3297D, and the part number for the Board should be 184194E-01, indicating that it is revision E and is a module of 16 MB/ch PXI-5112. When you got the error, you said you had traditional-DAQ 7.4.4, but I'm not clear what version of NOR-SCOPE, you had. OR-SCOPE has been installed in the system at this time?

    If you plan to run this Board in LabVIEW 2010 on a Windows XP-based computer, you need to install OR-SCOPE 3.6.2 in order to get all the support you need. As long as you are running a 64 bit OS, the PXI-5112 should function normally. OR-SCOPE 3.6.2 is the oldest version of the driver that will support LabVIEW 2010 (it will support LabVIEW 8.5.1 and more later). Seems to me that previous errors, you have been doing are the result of incompatibilities between versions of your different software/driver. If you install this latest version of NOR-SCOPE, it must include all the right support you need (traditional-DAQ 7.4.4, OR-SCOPE 3.6.2 support for LabVIEW 2010, NOR-DAQmx 9.1.5, MAX 4.7, etc.). Unfortunately, the only way to get NO-SCOPE 3.6.2 is through the CD August 2010 device drivers (DCD). Once you start the installation, you can select always right to install NO-SCOPE and not the rest of the drivers in the package if you do not want. Of course, having the latest updates of all might not be a bad idea, or if you want to just install everything.

    Moreover, all the part numbers you listed (except the last) are parts numbers for specific elements of the PXI-5112 (Panel connection, the real PCB, CPLD chip, etc.). The assembly number is the one you are looking for. Sorry for the confusion.

    Best regards!

Maybe you are looking for