Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS export to Excel

Status
Not open for further replies.

TomR100

Programmer
Aug 22, 2001
195
US
I am exporting data from SQL to an Excel spreadsheet. One of columns of information is social security numbers. There are some of my numbers that have a zero (0) as the first number and when the data goes into the spreadsheet the zero is dropped. Is the any way to stop this from happening?

Is there any way to fill in column heading for the Excel spreadsheet through the DTS?
 
Your social security number is most likely a number field and excel sees it as just that and drops the leading zero. You can convert it to a string just prior to exporting to excel. If you are using DTS to export to an excel spreadsheet you can do some column manipulations like this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top