Re: Select Formatted Text From Table



On Wed, 24 Oct 2007 08:59:01 -0700, Tsheth wrote:

Hi,
I have a text column in a table and data stored in it contains formatted
text (with carriage returns, tabs, and spaces). When I perform a select on
that column, data returned is non formatted. How do get the formatted data?

Hi Tsheth,

The data is returned as is, including any character retunrs etc. It is
the client program that decides how to display the data.

If you are using SQL Server Management Studio, then you can see the data
formatted by using "Results to Text", or without the carriage returns
and tabs by using "Results to Grid". These options can be found in the
"Query" menu.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
.



Relevant Pages

  • Re: How to remove Tabs/Carriage returns from memo field on export to C
    ... they will be truncated when the query is exported. ... CSV file I want all the carriage returns and tabs removed from the field ...
    (microsoft.public.access.externaldata)
  • retrieving email address surrounded by tabs, carriage returns, etc
    ... I'm using Word VBA to retrieve email addresses inside a Word document. ... problem I encounter is that sometimes there are tabs, carriage returns, ie ... For Each rngStory In objDocument.StoryRanges ...
    (microsoft.public.word.vba.general)
  • Re: Remove the last carriage return and line feed from sql text field
    ... strip off the last carriage return and line feed from a text field. ... This causes havoc when we sync between our ERP system and CRM ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: SSMS Query Editor... Vs Query Analyser
    ... nightmare that I can only view 3 or 4 query tabs at one time. ... I don't think SQL 2005 is the last version of SQL Server. ... But don't expect any significant changes in functionality within ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: Remove Carriage Return
    ... *mike hodgson* |/ database administrator/ | mallesons stephen jaques ... >>Database change management for SQL Server ... >>>I attempt to replace the Carriage Return with Space. ...
    (microsoft.public.sqlserver.server)