Solved

SQL TEXT LIMIT

Posted on 1998-10-13
6
342 Views
Last Modified: 2009-12-16
I am a university student working with a SQL Database. I want to insert text containing 2000 characters into a text field. The text field doesnt allow 2000 characters. How can I fix this?
0
Comment
Question by:HBence
  • 3
  • 2
6 Comments
 

Author Comment

by:HBence
ID: 1090534
.
0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1090535
What do you mean by "doesn't allow". Plase be more specific on how you are trying to do this. Detailed description of the problem   will help us to solve your problem quicker
0
 

Author Comment

by:HBence
ID: 1090536
Edited text of question
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:HBence
ID: 1090537
I inserted the text without any problems. When I tried to view it with a SELECT statement, only some of the text was returned.
The SET TEXTSIZE statement didn`t help much either.
0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1090538
What do you use to insert/seect?
0
 
LVL 1

Accepted Solution

by:
snydero earned 50 total points
ID: 1090539
To enter text data, the column must first be initialized. Initialization causes a 2K data page to be allocated.
Initialize the text column by providing non-null data with an INSERT statement or any value (including a NULL) with an UPDATE statement. Then use the READTEXT statement to read text data, the WRITETEXT statement to replace text data, and the UPDATETEXT statement to modify text or image data.

0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now