dbTalk Databases Forums  

Copy the contents failure of 9 digit zip codes

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Copy the contents failure of 9 digit zip codes in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
WhiskeyRomeo
 
Posts: n/a

Default Copy the contents failure of 9 digit zip codes - 05-21-2008 , 03:58 PM






I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #2  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM






Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #3  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM



Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #4  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM



Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #5  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM



Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #6  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM



Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #7  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM



Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #8  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM



Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #9  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 09:39 PM



Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
Quote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill

Reply With Quote
  #10  
Old   
WhiskeyRomeo
 
Posts: n/a

Default Re: Copy the contents failure of 9 digit zip codes - 05-21-2008 , 10:13 PM



If we do that in the template version will that carry over to workbooks based
on that template?

BTW, thanks for the reponse.

"Ed Enstrom" wrote:

Quote:
Formatting a column is for display. It does not change Excel's internal data type.

In the workbook, select the column, then go to Data - Text to Columns

In the wizard, define the data in the row as Text.

WhiskeyRomeo wrote:
I have a DTS package that copies contents from an Excel spreadsheet. In the
spreadsheet all columns are formatted as "text." One column consists of Zip
codes. They are a mixture of 5 and 9 digit zip codes. The 9 digit zip code
has the hyphen in it (12345-6789). The zip code is copied to a table in a
SQL Server 2000 database and the particular column is defined as varchar(15).

The column in the database ends up being null for 9 digit zip codes. If we
remove the hyphen for 9 digit zip codes in the source Excel file, the 9
digits copy just fine.

This is occurring in Excel in Office 2003 as well as Office 2007.

Can anyone help me with this problem?


Bill


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.