Results 1 to 4 of 4

Thread: Maximum number of characters in a database table field

  1. #1
    Join Date
    Feb 2003
    Posts
    2

    Maximum number of characters in a database table field

    Can any one help me, i'm building a dynamic database driven site using dreamweaver and MS SQL2000 andi'm haveing problem storing over 8000 characters in a table filed (IE: it wont let me!!) is there a special table field value that i need to set to get more characters in a table field or is this a limitation of SQL.

    Any help or suggestions would be appreciated

    Regards
    B

  2. #2
    Join Date
    Sep 2002
    Location
    Amsterdam
    Posts
    53
    Columns of char datatype have a maximum lenght of 8060. If you need to store more you have to use text or ntext as datatype. See BOL

  3. #3
    Join Date
    Feb 2003
    Posts
    2
    Cheers Markus much appreciated

    will try that,

    Regards

    Brian

  4. #4
    Join Date
    Feb 2003
    Posts
    34
    Note that text field has no mercy when it comes to using it in stored procedures. Its not as flexible as varchar fields. So if you could use multiple varchar fields and somehow manage to concatinate them in your front end code, pls do that.

Posting Permissions

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