Max Character For String Parameter in SQL

I have this problem. I have designed a table to store long message or remark, where these info are more than 1000 characters. When I use store procedures to assign these info into a parameter/variable (where I declared it as @str varchar(1000)), it's only return first 250 characters of remark or message? The rest of the characters are all truncated. WHy? Pls help me. Thanks in advance.

Kelvsat
KelvsatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

curtis591Commented:
Are you looking at this through query analyzer?  If you look under the options in query analyzer in the results tab you will see a maximum numbers of charcters per column option that you can change to bring back more characters.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sukumar_diyaCommented:
Hi,
if the problem is when you are getting the details from the database then please check whether the full message is stored in the database.The text may be truncated in the front end. Please post some code, so that it will be easy for us to find the problem..
Thanks
Sukumar
0
Ken SelviaRetiredCommented:
To see if you are really storing more than 250 characters;

select max(datalength(remark)) from mytable
0
Dishan FernandoSoftware Engineer / DBACommented:
Agree with curtis591

It should be settings in QA. You can use more than 1000 as a variable

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.