ASP/SQL Query Recordset up to 200 characters?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default ASP/SQL Query Recordset up to 200 characters?

    Is it possible through SQL to query a recordest lets say a memo description feild for lets say only the first 200 characters?

    Or

    To somehow control this through CSS?

    Please advise.

    Speegs
    Speegs Guest

  2. Similar Questions and Discussions

    1. Problems with Recordset (Query) in Dreamweaver BindingsPanel
      Coldfusion Gurus- I keep getting this error when I try to make a connection to my database using the Dreamweaver Bindings Panel: "There are no...
    2. recordset query not working
      hello, im using asp and dreamweavers automated features. the following query works select * from table where dateexp >= now so expired...
    3. Getting 0 recordset in MS Access Query
      Hi, I'm trying to do a sql query on a date column, like this SELECT * FROM WHERE Call_Date = #04/01/2004# No errors in the statement, but 0...
    4. using Command to set Parameters and Recordset to retrive the Query
      Hi guys, withou using SP, I want to be able to add a Parameter to the SQL Query and retrive the Recordset so I can use the Paging property under...
    5. PHP & Simple Recordset Query
      Why can't I open the simple dialog box on recordset queries with PHP? It works with ASP but I can open a blank PHP page in a Blank site and still get...
  3. #2

    Default Re: ASP/SQL Query Recordset up to 200 characters?

    The easiest way is to simply pull the first 200 characters using VBScript:

    <%= Left(yourRecordset('yourMemoField'), 200) %>

    That would do it :)
    webshorts Guest

  4. #3

    Default Re: ASP/SQL Query Recordset up to 200 characters?

    Thanks Daniel, it worked like a charm.
    What is the significance of left? Just curious, also would it be possible to tell it to stop at the first period or end of sentence it finds.

    Speegs
    Speegs Guest

  5. #4

    Default Re: ASP/SQL Query Recordset up to 200 characters?

    Actually, you could do this in the query even easier (well, the same way at
    least)

    SELECT left(yourFirld,200) as 'myMemo'...

    that way you don't have to deal with it on the page. Of course this will
    truncate the field for ALL records but that seems to be what you want. Look
    up INSTR functions to stop at the 1st period or anything else.

    Left syntax is "starting from the LEFT return the N number of characters
    from the given field". It's one of the basic SQL commands or other
    programming languages with string variables.

    HTH

    David


    "Speegs" <webforumsuser@macromedia.com> wrote in message
    news:d1bk4k$nfu$1@forums.macromedia.com...
    > Thanks Daniel, it worked like a charm.
    > What is the significance of left? Just curious, also would it be possible
    to tell it to stop at the first period or end of sentence it finds.
    >
    > Speegs

    DavidT Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139