![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Well your column in Excel should be consistent. they should all be text or all be numbers. If I were doing it, I would just format the Excel column to show leading zeros and make all the entries in the Excel workbook numbers. Dennis D.St... (AT) ed (DOT) ac.uk> wrote in message news:7c504f4e-4613-415b-b16b-308d83f4dd3a (AT) d1g2000hsg (DOT) googlegroups.com... I'm trying to import a small spreadsheet from Excel into a pre-created SQL Server table. One column is defined as char(2), and the data values are actually 2 digits. When the leading digit is non-zero, the data transfers OK, but if the code is, say, '06', I get a null in SQL Server. I'm running SQL Server 2000, and using a simple DTS package with straightforward column copies for the transformations. Is there anything I can do in either DTS or Excel to ensure this data is transferred? I notice Excel flags these values as errors because they are numbers formatted as text (preceded by '). Cheers, Dave |
#12
| |||
| |||
|
|
Well your column in Excel should be consistent. they should all be text or all be numbers. If I were doing it, I would just format the Excel column to show leading zeros and make all the entries in the Excel workbook numbers. Dennis D.St... (AT) ed (DOT) ac.uk> wrote in message news:7c504f4e-4613-415b-b16b-308d83f4dd3a (AT) d1g2000hsg (DOT) googlegroups.com... I'm trying to import a small spreadsheet from Excel into a pre-created SQL Server table. One column is defined as char(2), and the data values are actually 2 digits. When the leading digit is non-zero, the data transfers OK, but if the code is, say, '06', I get a null in SQL Server. I'm running SQL Server 2000, and using a simple DTS package with straightforward column copies for the transformations. Is there anything I can do in either DTS or Excel to ensure this data is transferred? I notice Excel flags these values as errors because they are numbers formatted as text (preceded by '). Cheers, Dave |
#13
| |||
| |||
|
|
Well your column in Excel should be consistent. they should all be text or all be numbers. If I were doing it, I would just format the Excel column to show leading zeros and make all the entries in the Excel workbook numbers. Dennis D.St... (AT) ed (DOT) ac.uk> wrote in message news:7c504f4e-4613-415b-b16b-308d83f4dd3a (AT) d1g2000hsg (DOT) googlegroups.com... I'm trying to import a small spreadsheet from Excel into a pre-created SQL Server table. One column is defined as char(2), and the data values are actually 2 digits. When the leading digit is non-zero, the data transfers OK, but if the code is, say, '06', I get a null in SQL Server. I'm running SQL Server 2000, and using a simple DTS package with straightforward column copies for the transformations. Is there anything I can do in either DTS or Excel to ensure this data is transferred? I notice Excel flags these values as errors because they are numbers formatted as text (preceded by '). Cheers, Dave |
#14
| |||
| |||
|
|
Well your column in Excel should be consistent. they should all be text or all be numbers. If I were doing it, I would just format the Excel column to show leading zeros and make all the entries in the Excel workbook numbers. Dennis D.St... (AT) ed (DOT) ac.uk> wrote in message news:7c504f4e-4613-415b-b16b-308d83f4dd3a (AT) d1g2000hsg (DOT) googlegroups.com... I'm trying to import a small spreadsheet from Excel into a pre-created SQL Server table. One column is defined as char(2), and the data values are actually 2 digits. When the leading digit is non-zero, the data transfers OK, but if the code is, say, '06', I get a null in SQL Server. I'm running SQL Server 2000, and using a simple DTS package with straightforward column copies for the transformations. Is there anything I can do in either DTS or Excel to ensure this data is transferred? I notice Excel flags these values as errors because they are numbers formatted as text (preceded by '). Cheers, Dave |
#15
| |||
| |||
|
|
Well your column in Excel should be consistent. they should all be text or all be numbers. If I were doing it, I would just format the Excel column to show leading zeros and make all the entries in the Excel workbook numbers. Dennis D.St... (AT) ed (DOT) ac.uk> wrote in message news:7c504f4e-4613-415b-b16b-308d83f4dd3a (AT) d1g2000hsg (DOT) googlegroups.com... I'm trying to import a small spreadsheet from Excel into a pre-created SQL Server table. One column is defined as char(2), and the data values are actually 2 digits. When the leading digit is non-zero, the data transfers OK, but if the code is, say, '06', I get a null in SQL Server. I'm running SQL Server 2000, and using a simple DTS package with straightforward column copies for the transformations. Is there anything I can do in either DTS or Excel to ensure this data is transferred? I notice Excel flags these values as errors because they are numbers formatted as text (preceded by '). Cheers, Dave |
#16
| |||
| |||
|
|
Well your column in Excel should be consistent. they should all be text or all be numbers. If I were doing it, I would just format the Excel column to show leading zeros and make all the entries in the Excel workbook numbers. Dennis D.St... (AT) ed (DOT) ac.uk> wrote in message news:7c504f4e-4613-415b-b16b-308d83f4dd3a (AT) d1g2000hsg (DOT) googlegroups.com... I'm trying to import a small spreadsheet from Excel into a pre-created SQL Server table. One column is defined as char(2), and the data values are actually 2 digits. When the leading digit is non-zero, the data transfers OK, but if the code is, say, '06', I get a null in SQL Server. I'm running SQL Server 2000, and using a simple DTS package with straightforward column copies for the transformations. Is there anything I can do in either DTS or Excel to ensure this data is transferred? I notice Excel flags these values as errors because they are numbers formatted as text (preceded by '). Cheers, Dave |
#17
| |||
| |||
|
|
Well your column in Excel should be consistent. they should all be text or all be numbers. If I were doing it, I would just format the Excel column to show leading zeros and make all the entries in the Excel workbook numbers. Dennis D.St... (AT) ed (DOT) ac.uk> wrote in message news:7c504f4e-4613-415b-b16b-308d83f4dd3a (AT) d1g2000hsg (DOT) googlegroups.com... I'm trying to import a small spreadsheet from Excel into a pre-created SQL Server table. One column is defined as char(2), and the data values are actually 2 digits. When the leading digit is non-zero, the data transfers OK, but if the code is, say, '06', I get a null in SQL Server. I'm running SQL Server 2000, and using a simple DTS package with straightforward column copies for the transformations. Is there anything I can do in either DTS or Excel to ensure this data is transferred? I notice Excel flags these values as errors because they are numbers formatted as text (preceded by '). Cheers, Dave |
![]() |
| Thread Tools | |
| Display Modes | |
| |