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 7530191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:50:36+00:00 2026-05-30T04:50:36+00:00

I have some text, e.g line one \r\n line two \r\n line threee. In

  • 0

I have some text,

e.g

line one \r\n
line two \r\n
line threee.

In my database, I have a column define as type text, then I use Entity Framework to map that column, the code generate by Entity Framework is type string

I can successfully save that text into the column in the database. However, from Management Studio, I couldn’t see those line separators, when I do copy value, and paste to notepad, they have become one line of text.

Anyone know what the problem is?

Thanks.

  • 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-30T04:50:38+00:00Added an answer on May 30, 2026 at 4:50 am

    You should stick to NVarchar when it comes to store text data (one of the reason is that it supports more characters).
    Heres an extract from msdn:

    “ntext, text, and image data types will be removed in a future version of Microsoft SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max), varchar(max), and varbinary(max) instead”.

    More info:

    • ntext, text, and image deprecated :http://msdn.microsoft.com/en-us/library/ms187993.aspx
    • replace text: http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a plain text file looking like this: some text containing line breaks
I have an HTML textarea: <textarea> Some text Another text in another line BOOM
I have the following line between my \maketitle and my \begin{abstract}: \center{ \textsc{Some text
I have a line of Fortran code, which includes some text. I'm changing the
I have two elements (a field and some text) that I would like to
I have some html file with span elements: <html> <body> <span class=one>Text</span>some text</br> <span
I have created a table and there is some text in which column of
I have some text displaying in a larger font size than what it is
I have some text/images that I only want to display in the normal state
I have some text i need to filter out a list of bad words

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.