dbTalk Databases Forums  

Output Select results to a text file.

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Output Select results to a text file. in the comp.databases.ms-sqlserver forum.



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

Default Output Select results to a text file. - 05-13-2005 , 01:29 PM






I have a dynamic database that will be periodically queried to select
the data from a blob field. This blob data field is text of a variable
length. The data will be selected using an id field and a date range.
There will be multiple blob fields returned that I would like to output
into a txt file in a local folder.

I have the blob fields showing up as text in the field and not a
referring link. Can someone point me to an output to text solution?

Thanks


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

Default Re: Output Select results to a text file. - 05-14-2005 , 02:17 AM






Hi

You could use BCP (or the textcopy sample) and the queryout arguement so you
can create a query on the fly using your identifiers. This could then be
call from xp_cmdshell. Or you could use a DTS package and specify the ids as
global variables or put them in a table where they can be picked up see
http://www.sqldts.com/default.aspx?234

John


"raglin" <pzelenka (AT) gmail (DOT) com> wrote

Quote:
I have a dynamic database that will be periodically queried to select
the data from a blob field. This blob data field is text of a variable
length. The data will be selected using an id field and a date range.
There will be multiple blob fields returned that I would like to output
into a txt file in a local folder.

I have the blob fields showing up as text in the field and not a
referring link. Can someone point me to an output to text solution?

Thanks




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.