Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql2005
Message
 
 
To
22/06/2011 07:26:47
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01515445
Message ID:
01515446
Views:
61
>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
Map
View

Click here to load this message in the networking platform