Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: How I can generate a bcp ordered of a table with index non-clustered?

$
0
0

The other way is to simply run the query via isql and specify -s and -h0 (I think -h0 turns off headers) and use set nocount on prior to query.... bcp out is a simple select - nothing fancy....so by putting the query in a file and using -i and -o for in/out files and the other options, no view likely necessary.  If the header is still there a quick sed script or a unix head command can strip it.

 

...of course this will be character mode....bcp utility supports native mode, which is infinitely better for floats, etc.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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