- I was working with an .csv (comma separated variable) file in Excel. When saving the document, a column that had numeric data, had the leading zero truncated. That is, the data was entered as 05, but was saved with only the 5. The reason for this is because Excel sees that data as numeric, and treats it as such, even though I wanted it to be treated as a text field. The solution to this problem is to format the cells in the column with a Custom Format. Highlight the column, and press Ctrl+1. The Format Cells dialog box appears. In the Number tab, underneath Category:, select Custom. In the Type: box, enter 00 (or however many digits you would like to keep). Save the file.
- Here is a good T-SQL link for formatting dates: http://anubhavg.wordpress.com/2009/06/11/how-to-format-datetime-date-in-sql-server-2005/
54026736-bea6-4df6-9439-19a4b1b7b7bf|0|.0