text, ntext data types problems in SQL Function

  • I have a table with data type text column. while using text type variables in function I get error like The text, ntext, and image data types are invalid for local variables.

    For now I am using VARCHAR(MAX) type variables in function but I cant get whole text of that field. I am losing lots of data from that function and my query output is not precise.

    How can I use text/ntext data type in SQL Function to get precise output?

    Thanks in advance.

  • Hi

    What is your function doing with such a long text?

    There are some ways to get a round this limit, but usually you do not want to process such long texts.

    Post some more details and I'll be happy to solve your problem.

    Tal Ben Yosef

Viewing 2 posts - 1 through 1 (of 1 total)

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