Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi, I encounter a problem when doing some data transition work from excel to sql server, there is a column in the excel sheet in which most contents are integer but still some are words, after the transition I found in the coresponding table of sql that the rows whose value is not integer in excel are set as null, seems the excel treat the column as int type so the words are omitted, I tried to change the class of cell into "text" the column's property the still the same thing happens. I tried both DTS in sqlserver and write c# code through OleDb to do this job and got the same result. I just want get the values as varchars with non-integer ones reserved. What should I do ? p.s in some test I tried I found that if a column contains mostly alphabet words and few integers , the integers will be set as null after the transitions, so looks like the excel will give the column a type according to the type of its most rows. All I want to to get all the values as varchars, please helpl, thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 - Lookup type of question | Excel Worksheet Functions | |||
Type A Question | New Users to Excel | |||
Type a Question for Help | Excel Discussion (Misc queries) | |||
how get rid of "Type a question for help" box | Excel Discussion (Misc queries) | |||
Sum if type question? | Excel Worksheet Functions |