Sure... Here's one:bcp "select TOP 10 * from WEBQA_state..PREDEFINED_Functions where descriptionshort = 'Region Where Company is Traded (Japanese)'" queryout "seethosesemis.txt" -c -Uuserid -Sservername -Ppassword
In the table there is a column called formula VARCHAR(MAX) containing this long character value:int exchange; string_array result; exchange = (int)PEXCHN(); if(ISNA(exchange)) then { result = STRING_NA; } else { result = LOOKUP_SJIS("QAI:GLOBAL_EXCHANGE",exchange,"REGIONJ"); } return resultHere's how BCP pulls it:|5| 6265 P_REGION_TRADED_J Region Where Company is Traded (Japanese) Region Where Company is Traded (Japanese) 0 1 1 1 0 int exchange;string_array result;exchange = (int)PEXCHN();if(ISNA(exchange)) then {result = STRING_NA;}else {result = LOOKUP_SJIS("QAI:GLOBAL_EXCHANGE",exchange,"REGIONJ");}return result int exchange;string_array result;exchange = (int)PEXCHN();if(ISNA(exchange)) then {result = STRING_NA;}else {result = LOOKUP_SJIS("QAI:GLOBAL_EXCHANGE",exchange,"REGIONJ");}return result 1001 2004-04-29 17:15:00 2 0 2 -1 0 1 0 1 -1It looks like it's treating the } as a carriage return as well.