Solved

Character limits in data fields

Posted on 2006-11-07
4
570 Views
Last Modified: 2008-01-09
Hello,
A simple question I hope but usually the simple ones stump me as this one has....

I have MS SQL 2000
I create a table.
I create a field on the table.
Set it as type varchar.
Set the legnth to 8000

I try to type in that field and it only lets me type 1023 characters.
I have tried several other types as well and they are all the same... even tho the max is set to 8000 or 4000 depending on the data type.

Anyone know why it will only let me input 1023 characters in a field that is susposed to hold 8000?


Thanks,
Hudsonbeck
0
Comment
Question by:hudsonbeck
4 Comments
 
LVL 29

Accepted Solution

by:
Nightman earned 55 total points
ID: 17893180
This appears to be a limitation of the UI in Enterprise Manager. You would still be able to insert more data programatically (i.e. with Query Analyser, or from client code)
0
 
LVL 9

Expert Comment

by:gpompe
ID: 17893238
I do not if this is your case, but sometimes EM adds extra spaces trailing the field value. This happens specially when you edit a previous value.

Try positioning the cursor at the end of your value and press Shit+End to check if this is what is going on.
0
 
LVL 4

Assisted Solution

by:satish_nagdev
satish_nagdev earned 50 total points
ID: 17895602
hi,
this problem is related to UI for Queryanalyzer. in tools menu go to options you'll see multiple tabbed dialog in that goto results tab in that you'll see maximum characters per column text box in that enter 8000 then try to run the query.

i think this should be helpful.

regards,
satish.
0
 

Author Comment

by:hudsonbeck
ID: 17898657
Thanks for the replys!
It does appear to be a UI issue in EM. I did what you suggested and found that I could post more characters via ASP or Access link. I then changed the option in Query Analyzer  and  and was able to 'see' that it was there...

Split
Nightman for the reason
Satish for another option to view it.

Thanks Guys

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question