Results 1 to 8 of 8

Thread: what is Memo for MS SQL ?

  1. #1
    Join Date
    Jul 2004
    Posts
    106

    what is Memo for MS SQL ?

    in Access a Memo = 64000 char

    what is it in MS SQL ? I find only for 255 char

    thank you

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Ues text data type, it can hold up to 2g characters.

  3. #3
    Join Date
    Jul 2004
    Posts
    106
    I have tried it but if I write into entreprise manager just to see, it erase all and write <long text>

    thank you

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can't use regular update statement for text, you have to use WRITETEXT or UPDATETEXT. Enterprise Manager does not display text, You can use READTEXT statement in query analyzer. But you can get first few characters by doing substring on the column.

  5. #5
    Join Date
    Jul 2004
    Posts
    106
    ok thank you, MS SQL is a very strong database but really it looks somehow antic

  6. #6
    Join Date
    Sep 2002
    Posts
    5,938
    It works different from access.

  7. #7
    Join Date
    Feb 2003
    Posts
    1,048
    You should use the TEXT data type only when you absolutely need it. A varchar or char field in SQL Server can have a maximum size of 8000 bytes (not to exceded a total row length of 8060). Nchar and nvarchar fields can likewise have a max size of 8000 bytes, but because unicode characters are 2 bytes each, 1/2 as many characters fit into those fields.

    As mentioned above, the maximum size for a row of data is 8060 bytes, so your total defined size should not exceed that.

    If one of these 4 data types suits your needs, you should use that.

  8. #8
    Join Date
    Jul 2004
    Posts
    106
    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
  •