?
Solved

SQL TEXT LIMIT

Posted on 1998-10-13
6
Medium Priority
?
392 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:Victor 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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:Victor Spiridonov
ID: 1090538
What do you use to insert/seect?
0
 
LVL 1

Accepted Solution

by:
snydero earned 200 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

807 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