Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

export data using the output command from interactive sql

$
0
0

It is requested to export data from ASE in a csv file having all the data quoted. In Interactive SQL GUI we can use this

 

OUTPUT TO 'C:\tmp\data.csv' FORMAT ASCII

DELIMITED BY ',' QUOTE '''' ALL ENCODING cp1253

GO

 

and it returns the desired result. However we cannot create a script executed from command line that produces this file, because the GUI dbisql cannot take any arguments in order to connect  to an ASE instance and execute an SQL file and the command line isql cannot accept the output command. I think we cannot achieve this using only the ASE client tools

 

A supposed solution could be to create a string for each row and export it using bcp or even isql. I would prefer to avoid such an approach.

 

Thank you in advance


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>