Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a column type in a dataset
Message
From
06/03/2007 15:53:21
 
 
To
06/03/2007 11:54:11
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01201032
Message ID:
01201203
Views:
16
Thanks for the info John. I'll bow to your expertise on this subject.

~~Bonnie



>Hi Bonnie:
>
>I've done a lot of importing with excel into datasets and the problem is with the implicit conversions to types in the dataset. For example, excel stores the date as the number of days from 1/1/1980 so it doesn't convert cleanly and can cause errors. Our import class was a mess to program for all the variability in the excel import.
>
>
>
>>If you already know what the structure of the DataSet will be, start out with an .xsd already pre-defined with the datatypes, add the .xsd to your Solution and VS will generate a Typed DataSet for you. Then import your Excel into that Typed DataSet that was generated from the .xsd.
>>
>>I'm assuming this will work, but I haven't messed with importing Excel data.
>>
>>~~Bonnie
>>
>>
>>>I am importing an Excel sheet into a dataset. So, of course, everything is now in character type. How can I update the dataset to specify that some columns are not integer and types like that?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform