General information
Forum:
Microsoft SQL Server
Environment versions
SQL Server:
SQL Server 2005
>I'm using bcp to copy some data to a csv file.
>
>Phone numbers which have been entered without a space are losing their leading zero.
>
>Whats the best way to stop happening.
>
>Phone numbers with an embedded space are ok
>
>so 07887734045 comes out as 7887734045
>
>07995 634910 comes out correctly
>
Going from memory, I think you need to format the column as character instead of nuimeric in the CSV file. You can do that with Excel.
You sure are immersed in SQL Server. How did this come about? It's going to look good on your resume. Sorry, your CV ;-)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only