Results 1 to 5 of 5

Thread: SQL 2000 varchar data type

  1. #1
    Join Date
    Feb 2004
    Posts
    12

    Question SQL 2000 varchar data type

    Hi all,
    I've declared a varchar(8000) var but when I select the variable I've only 256 characters.
    Strange is that if I select the length of the variable the result is greater than 256...
    I'm using SQL 2000 and SQL 2000 client so there should not be problem related to SQL server 6.x
    Someone can help me?
    Thank you very much

  2. #2
    Join Date
    Mar 2003
    Location
    Woking, UK
    Posts
    152
    In SQL Query Analyzer click Tools.Options (CTRL+Shif+O) and on the tab Results increase "Maximum characters per column"
    You Have To Be Happy With What You Have To Be Happy With (KC)

  3. #3
    Join Date
    Feb 2004
    Posts
    12

    Thumbs up

    Thank you very much, the length of the varchar variable could be an issue when using the execute(string) function?
    Last edited by A@Rome; 02-27-2004 at 09:42 AM.

  4. #4
    Join Date
    Mar 2003
    Location
    Woking, UK
    Posts
    152
    as far as I know there is no issue with executing (long) string. also you can execute more strings..
    execute(string1+stringN)
    You Have To Be Happy With What You Have To Be Happy With (KC)

  5. #5
    Join Date
    Feb 2004
    Posts
    12
    thank you very much!

Posting Permissions

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