Home All Groups Group Topic Archive Search About

How do you insert a carriage return in Management Studio?

Author
28 Jun 2006 3:49 PM
Nick Gilbert
Hi,

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.

In SQL 2000 it was very straightforward.

Nick...

Author
28 Jun 2006 10:23 PM
Erland Sommarskog
Nick Gilbert (nickg@newsgroup.nospam) 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, esq***@sommarskog.se

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
Are all your drivers up to date? click for free checkup

Author
11 Jul 2006 9:39 AM
Nick Gilbert
> Nick Gilbert (nickg@newsgroup.nospam) 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.

Obviously I know how to use INSERT and UPDATE statements, but sometimes
you just quickly want to change a value or two and having to write an
insert or update query just to do something this simple is a hassle. You
could do this easily in SQL 2000 so I don't see why they've opted to
remove this possibility in SQL 2005. Why not just let CTRL-Enter insert
a CR like you can in most other databases and programs? GRRR.

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

Thanks for pointing this out... Sounds very useful!

Nick...
Author
12 Jul 2006 8:49 AM
Wei Lu [MSFT]
Hi Nick,

Thank you for the posting.

Thank you for taking the time to provide feedback on this product. 

We are very interested in your thoughts and opinions for improvements that
we can make to provide the features and functionality you and your
customers would like to see. 

To provide your feedback directly to the product groups:
http://lab.msdn.microsoft.com/productfeedback/default.aspx

If you have any questions or concerns, please feel free to let me know.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Author
12 Jul 2006 10:27 PM
Erland Sommarskog
Wei Lu [MSFT] (we***@online.microsoft.com) writes:
> To provide your feedback directly to the product groups:
> http://lab.msdn.microsoft.com/productfeedback/default.aspx

This link is outdated. The feedback site is now at
http://connect.microsoft.com/feedback/default.aspx?SiteID=68.


--
Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se

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
Author
13 Jul 2006 12:27 PM
Wei Lu [MSFT]
Hi Erland,

Thanks for your provide.

The link I provided does not outdated. You could still access the feedback
page by drillthough the page.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Author
13 Jul 2006 10:13 PM
Erland Sommarskog
Wei Lu [MSFT] (we***@online.microsoft.com) writes:
> The link I provided does not outdated. You could still access the feedback
> page by drillthough the page.

Yes, the link does take you to the Connect site, since there is a
redirection in place.

Nevertheless, I think Microsoft staff should post the correct links,
so please use the direct link to Connect in the future.


--
Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se

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
Author
14 Jul 2006 2:54 AM
Wei Lu [MSFT]
Hi Erland,

Thank you for the suggestion. I would like to use the direct link next
time. Thanks!

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Bookmark and Share