Solved

SQL TEXT LIMIT

Posted on 1998-10-13
6
345 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

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
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.
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.

792 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