![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, How can I have the result set of three different tables into one flat file. 1)Simple select statements from three tables 2)Fixed field data 3)Variable flat file name, eg: batch20031221.txt Thanks for your time and energy Vijay |
#3
| |||
| |||
|
|
-----Original Message----- Pump the data into 3 seperate text files and then use the DOS COPY cmd COPY a.txt + b.txt + c.txt d.txt -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Vijay" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:02c701c3c83d$1f4e47d0$a501280a (AT) phx (DOT) gbl... Hi all, How can I have the result set of three different tables into one flat file. 1)Simple select statements from three tables 2)Fixed field data 3)Variable flat file name, eg: batch20031221.txt Thanks for your time and energy Vijay . |
#4
| |||
| |||
|
|
Hi Allan, Can this be done in DTS(scheduled job), and filename should be batchYYYYMMDD.txt, and then FTP this file to another sever. Thanks Vijay -----Original Message----- Pump the data into 3 seperate text files and then use the DOS COPY cmd COPY a.txt + b.txt + c.txt d.txt -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Vijay" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:02c701c3c83d$1f4e47d0$a501280a (AT) phx (DOT) gbl... Hi all, How can I have the result set of three different tables into one flat file. 1)Simple select statements from three tables 2)Fixed field data 3)Variable flat file name, eg: batch20031221.txt Thanks for your time and energy Vijay . |
![]() |
| Thread Tools | |
| Display Modes | |
| |