dbTalk Databases Forums  

Query ntxt fields

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Query ntxt fields in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Charles
 
Posts: n/a

Default Query ntxt fields - 07-04-2003 , 09:45 AM






Hi there,

I´m trying to export a "ntext" field in which I have
stored notes (a lot of text). I'm using the Query
Analizer, but the select command only returns the first
line of the text in each field. It seems that when an
enter is found it just finishes displaying the text of
that field.

Anyone has any idea how i can display the entire text in
each field?
Thanks in advance.


Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: Query ntxt fields - 07-05-2003 , 02:43 PM






Hi

The following seems to work fine for me:

create table longtext ( col1 ntext )

insert into longtext (col1) values ( N'abc124' + char(13) + char(10) +
N'def' )
insert into longtext (col1) values ( REPLICATE(N'abc1234567890',30) +
char(13) + char(10) + N'def' )

select * from longtext

Make sure that on the tools/options/results tab/maximum characters per
column setting is not the cause for your results.

I am not sure why you aren't using bcp for the export with the -n parameter.

John

"Charles" <carlos.espinoza (AT) itesm (DOT) mx> wrote

Hi there,

I´m trying to export a "ntext" field in which I have
stored notes (a lot of text). I'm using the Query
Analizer, but the select command only returns the first
line of the text in each field. It seems that when an
enter is found it just finishes displaying the text of
that field.

Anyone has any idea how i can display the entire text in
each field?
Thanks in advance.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.