Text data type

  • Is it still supported by SS 2016?
    Thanks

  • valeryk2000 - Tuesday, April 24, 2018 8:00 AM

    Is it still supported by SS 2016?
    Thanks

    Why do you ask?   varchar(max) is a much better alternative, and using text forces you to have to CONVERT to varchar(max) first in order to be able to do ANY kind of string manipulation anyway, so why bother?

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • valeryk2000 - Tuesday, April 24, 2018 8:00 AM

    Is it still supported by SS 2016?
    Thanks

    Yes.  It is still supported.
    However, it is recommended that you rather use varchar(max)

    ntext, text, and image (Transact-SQL)

    IMPORTANT! ntexttext, and image data types will be removed in a future version of SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max)varchar(max), and varbinary(max) instead.

  • OK. Thanks you. We have a lot of codes where varchar (max) is casted as Text. The reason - our frontend Access database truncated varchar(max) up to 255 character when show it on the form textbox. That made user nervous ...

  • valeryk2000 - Tuesday, April 24, 2018 12:35 PM

    OK. Thanks you. We have a lot of codes where varchar (max) is casted as Text. The reason - our frontend Access database truncated varchar(max) up to 255 character when show it on the form textbox. That made user nervous ...

    What version of MS Access are you using?   And how big is your textbox?   Are you certain that it was actually truncated, or did they just not see it all because the textbox isn't wide enough to fit it all in the space available, so the rightmost data was just not visible without putting the cursor into that field and going to the right with the arrow key?   If your version of Access is old enough, you might not have support for the varchar(max) data type, which is easily enough fixed by upgrading your version of MS Access to at least 2010.

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • Some of our users have 2003, other - 2010. You are right. we need to test 2010 if it can show the varchar (max) - the original codes were written having SS2K8 and Access 2003.  The textbox has vertical scrollbar, so it fits large text. The size of the text varies from ~ 3000 to ~ 20000 characters. When we load the text into local Access table into the field Memo - it is still truncated to 255. The same with reports.
    Thank you
    v

  • I'd personally suggest updating the version of Access for the users that are still using Access 2003. That version hasn't been under extended support since 8 April 2014 (over 4 years ago!); so I wouldn't be surprised it's having problem with using a version of SQL Server that was released 2 years after support for it had completed ended.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • This is correct. But they had this problem since 2009

  • valeryk2000 - Wednesday, April 25, 2018 9:02 AM

    This is correct. But they had this problem since 2009

    Then seems they've been in need of an upgrade for 9 years. 🙂

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Poor darlings ...

  • Thom A - Wednesday, April 25, 2018 9:05 AM

    valeryk2000 - Wednesday, April 25, 2018 9:02 AM

    This is correct. But they had this problem since 2009

    Then seems they've been in need of an upgrade for 9 years. 🙂

    Sounds like a Hospital app, they seem to be very patient!

    ...

  • HappyGeek - Wednesday, April 25, 2018 12:28 PM

    Thom A - Wednesday, April 25, 2018 9:05 AM

    valeryk2000 - Wednesday, April 25, 2018 9:02 AM

    This is correct. But they had this problem since 2009

    Then seems they've been in need of an upgrade for 9 years. 🙂

    Sounds like a Hospital app, they seem to be very patient!

    Heh... These type of legacy problems really needle me... they'll need to doctor-up their code soon.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Jeff Moden - Tuesday, December 18, 2018 12:17 PM

    HappyGeek - Wednesday, April 25, 2018 12:28 PM

    Thom A - Wednesday, April 25, 2018 9:05 AM

    valeryk2000 - Wednesday, April 25, 2018 9:02 AM

    This is correct. But they had this problem since 2009

    Then seems they've been in need of an upgrade for 9 years. 🙂

    Sounds like a Hospital app, they seem to be very patient!

    Heh... These type of legacy problems really needle me... they'll need to doctor-up their code soon.

    Heh... sick.... just sick...   I'm dyin' here... :hehe::hehe::hehe:

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • sgmunson - Wednesday, December 19, 2018 9:19 AM

    Jeff Moden - Tuesday, December 18, 2018 12:17 PM

    HappyGeek - Wednesday, April 25, 2018 12:28 PM

    Thom A - Wednesday, April 25, 2018 9:05 AM

    valeryk2000 - Wednesday, April 25, 2018 9:02 AM

    This is correct. But they had this problem since 2009

    Then seems they've been in need of an upgrade for 9 years. 🙂

    Sounds like a Hospital app, they seem to be very patient!

    Heh... These type of legacy problems really needle me... they'll need to doctor-up their code soon.

    Heh... sick.... just sick...   I'm dyin' here... :hehe::hehe::hehe:

    Heh... I cough up a good one every once in a while.  Seriously, though... they're going to need a good SQL Internalist to transplant the data to the new datatype to nurse this table back to health.

    Try the lasagna... I'm here all day. 😀

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Jeff Moden - Wednesday, December 19, 2018 9:37 AM

    sgmunson - Wednesday, December 19, 2018 9:19 AM

    Jeff Moden - Tuesday, December 18, 2018 12:17 PM

    HappyGeek - Wednesday, April 25, 2018 12:28 PM

    Thom A - Wednesday, April 25, 2018 9:05 AM

    valeryk2000 - Wednesday, April 25, 2018 9:02 AM

    This is correct. But they had this problem since 2009

    Then seems they've been in need of an upgrade for 9 years. 🙂

    Sounds like a Hospital app, they seem to be very patient!

    Heh... These type of legacy problems really needle me... they'll need to doctor-up their code soon.

    Heh... sick.... just sick...   I'm dyin' here... :hehe::hehe::hehe:

    Heh... I cough up a good one every once in a while.  Seriously, though... they're going to need a good SQL Internalist to transplant the data to the new datatype to nurse this table back to health.

    Try the lasagna... I'm here all day. 😀

    Holy Macaroni !!!   I'll have to pasta this one along to the linguini master, 'cause my sale ad isn;t workin' heah in Juhhhsey,,,

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

Viewing 15 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic. Login to reply