Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using bcp command to make excel file.

SQL
SET @bcpCommand = 'bcp "SELECT  top(10)  UniqueTxnId_BatchID + char(160) AS UniqueTxnId_BatchID  FROM TestDb.dbo.Rep_Txn_Dump" queryout "'



UniqueTxnId_BatchID is numeric digits when excel opening it will convert it to exponential form, so i added char(160) which is space, it will shows the special character (ÿ) like symbol. which character i want to add in sql query...

i tried all characters it is not solving

please help me.

Regards

GUPTHA
Posted
Updated 19-Dec-11 22:44pm
v2

1 solution

Don't quite understand why you want to add space to the end, but if you do, try using
SQL
char(32)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900