Re: How do you insert a carriage return in Management Studio?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Nick Gilbert (nickg@xxxxxxxxxxxxxxxx) writes:
This is really winding me up. How on earth do you type a carriage return
into a field from the "open table" view in SQL Server Management
Studio? I think I've tried everything - including copying and pasting
something with a carriage return in it. It seems to strip all text
pasted in after the first carriage return. The field is NTEXT, but that
probably doesn't matter.

The answer is that you start to learn to use INSERT statements to enter
your data. Open Table does not permit you to insert line break.

By the way, SQL 2005 offers a new data type nvarchar(MAX) which just
like ntext permits unlimited amount of text, but that does not have
all the quirks and limitations of ntext. Strongly recommended.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Query performence about nText
    ... The 16 byte pointer takes up space also for a NULL value. ... Permit me also to norice that ntext is a data type that is on its way out. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • Re: SQL Server float data type
    ... A fundamental data type that holds double-precision floating-point ... And form SQL Server when trying to commit 4.94E-320: ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: CASE problem
    ... safe way to avoid evaluation is to use a CASE expression. ... expressions - always return the one and same data type. ... according to the data-type precedence rules in SQL Server. ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Is there a way to transfer ntext data from one table to another? MSSQL2000
    ... description ntext NULL) ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Function that replaces ntext and compares ntext with nvarchar
    ... there are a lot of problems working with ntext. ... just use an accent-insentive collation: ... Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books ... ...
    (comp.databases.ms-sqlserver)