joshuaguilty
Programmer
I have a varchar variable (@INVOICE) which contains a field from user's input. Users would choose Invoice # to retrieve information. As long as @INVOICE is within 8000 characters (together with the dynamic SQL) the SP is running smoothly. BUT when it exceeds its limit then I got an error "... ntext to.... varchar not allowed". I have tried some ways to test and reSET the @INVOICE to a shorter length to avoid crash, but failed. Guys do have the same experience !?