Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3613338
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:06:40+00:00 2026-05-18T22:06:40+00:00

I am running ASP.NET connecting to a SQL Server 2005 database. Currently all my

  • 0

I am running ASP.NET connecting to a SQL Server 2005 database.

Currently all my data get’s saved in the database but when I use my HTML editor control (to allow the user to add styles to the text) sometimes I get the following error when I copy text with lots of styles from another website into the text area (error comes up when data is trying to save to database):

String or binary data would be truncated. The statement has been terminated.

Why is this and how do I handle this? Save the text rather to a text file?

The size of the field in the database is big enough!

Edits

INSERT INTO TableName(Name, Age, Comments) VALUES (@Name, @Age, @Comments)

Then from my code behind I simply call my SQLDatasource like so

SqlDataSource.Insert()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:06:41+00:00Added an answer on May 18, 2026 at 10:06 pm

    It sounds like you are passing a string variable to a stored procedure whit p.e. varchar(250) and the string length is over 251, even if the field in the table is varchar(1025) you’ll get the error because of the param length is not ok.

    Or… Try to use “text” type on db field?

    It’s an idea, if you get more info we’ll be more usefull. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have ASP.NET running on the server in IIS7. I think I'm going
When an ASP.NET application is running under IIS6.0 in Windows 2003 Server with impersonation,
I am running ASP.NET MVC Beta. I have an AJAX call running through jQuery
Where can I find some good pointers on best practices for running ASP.NET MVC
Running an ASP.Net website and using TinyMCE for content management. Users need to be
I'm running an ASP.NET web site on IIS 6.0 (Windows 2003), and the site
I have a website running a basic ASP.NET application that is mostly used from
Our ASP.NET 3.5 website running on IIS 6 has two teams that are adding
ASP.Net 3.5 running under IIS 7 doesn't seem to allow this out of the
We have an ASP.NET application running at a customer site that uses ActiveDirectory for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.