![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all ! I had a hard time to build a dts package which imports an excel sheet into a table inside sql server. The columns in the sheet hold mixed data ( numeric values and text ) and I struggled which estimation of the datatypes done excel and/or the jet driver ( I don't know ). To ake a long story short, I decided to convert everything to text, import it into a temporary table which has only varchaar columns and do the conversion inside sql server by myself. I've executed my package and wow everything looks fine. I came back the other day and done it a second time and know what ? It didn't work, someone tried to be intelligent again and mixed up the datatypes ( the main problem is the decimal seperator ',' resp. '.' ) . I'd change nothing ! I thought. Well there was one small difference in my testing scenario, in the first place I had Excel open with the worksheet loaded and in the second it was closed. Meanwhile I cross checked it and there's defefinitely a difference regarding to an open Excel ( the sheet needn't to be open as veryfied a second ago ). Looks like the Jet driver is behaving differently regarding to Excels state. Does anybody experienced the same ? Has an explanation ? Or advice what's the better way ? I am really confused about this behaviour and so is my customer.... TIA Meinhard |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |