|
dlau
Starting Member
2 Posts |
Posted - 2001-10-25 : 19:03:02
|
| What I want to achieve is to do a complex select command to get data out from different tables and output it into a txt file. This is on SQL7.0for exampleJohn,Smith,39,123 St John Rd,555-1234Bob,Waugh,23,456 Mt Wellington St,555-4567All these data are in different tables.I triedisql /Sserver /ddirdb /n /h-1 /w400 /s, /Usa /P"" -iinput.txt -ooutput.txtoutput look like thisJohn ,Smith ,39 ,123 St John Rd ,555-1234Bob ,Waugh ,23 ,456 Mt Wellington St ,555-4567(2 rows affected)If I use isqlw /Sserver /ddirdb /n /s, /Usa /P"" -iinput.txt -ooutput.txtoutput look like thisFirst_Name,Last_Name,Age,Address,PhoneJohn,Smith,39,123 St John Rd,555-1234Bob,Waugh,23,456 Mt Wellington St,555-4567(2 rows affected)What I want is just the data in the output file ieJohn,Smith,39,123 St John Rd,555-1234Bob,Waugh,23,456 Mt Wellington St,555-4567Is there any other way of doing other than using isql?Any ideas????Dave |
|