Skip to Content

nvarchar(max) vs. what was entered in Manage User Fields

When I create alphanumeric fileds in the manager user field function, all are being created in SQL as nvarchar(max). Then off course that causes problems with other tools such as Crystal.

I have a customer running MS SQL 2005 and Patch 45, this doesn't happen. I have another customer running the same (MS SQL 2005 and PL45) and they get nvarchar(max) on all alpha field adds. They both have their collate sequence set correctly, what other setting what cause this not to happen?

Thank you for any insight

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 24, 2008 at 02:09 AM


    1. While entering into B1 MSSQL is chosen : In this case the UDF created

    will have a Data type of "nvarchar(20)".

    2. While entering into B1 MSSQL2005 is chosen : In this case the UDF

    created will have a Data type of "nvarchar(max)".

    Hope it answers your question.

    Best Regards,

    Xiaodan AN

    Add a comment
    10|10000 characters needed characters exceeded

    • I change the nvarchar(max) to the char(xx) as needed right in SQL. I've found so many issues with using crystal, sql queries, .net programming and other things that I simply don't leave nvarchar(max) fields out there. It just causes too much grief, trouble shooting and lost time.

      I also have a routine that looks for user UDF's that are nvarchar(max) and sets them to what the Tools, Manager User Fields has them set at. It displays them first and then let's me change them, so I don't change any add-on's (ie. valogix) nvarchar(max) fields.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.