Results 1 to 3 of 3

Thread: Text Data Type

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Location
    Miami, FL
    Posts
    23

    Text Data Type

    What aren't I doing right with the SQL text data type in my code?

    In some pages that I am developing, there are recordsets with 2 or more fields with text data type.

    Sometimes it seems that these fields do not appear when I use <%= rsTable("text_field") %>, and sometimes it seems that it is causing other fields not to show when I use the same <%= rsTable("other_field") %>

    Is there any special treatment for SQL text datatype in ASP ?

  2. #2
    Fanatic Member riis's Avatar
    Join Date
    Nov 2001
    Posts
    551
    Are you sure those fields aren't empty?
    There isn't something like an SQL Text data type in ASP, they're just plain strings.

    Check for Len(rs("text_field")) = 0 to see whether a field is empty.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Location
    Miami, FL
    Posts
    23
    Yes, I am sure they are NOT empty.

    As I said, sometimes they work fine, and sometimes they don't work.

    The text fields in SQL are problematic ! I have a hard time with them.

Posting Permissions

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



Click Here to Expand Forum to Full Width