I am able to extract the column names from the file into an array list. What to do next to create a table with these columns.
Secondly i have a data set taken from a file. All the data is initially string. Now i have to convert the ones corresponding to numeric to numeric real to real char to char n string to string respectively. This can done by analysing all the rows of the columns.
It can be done using the fact that real(string initially) will have a . followed by no.. But is there any other way or function defined to do so??
How to define a table when you have the column names in a file.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mamta MRank #268 · 9.4K reputationPosted Dec 9, 2008, 10:54 PM EST
What format is the file present in? If it's an XML file, you can easily read its schema into a DataSet...but if it is text, then it might be difficult as there are no built-in classes for that.
-Mamta.
Mukul Budania7 reputationPosted Dec 11, 2008, 9:16 PM EST
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Feb 19, 2009, 6:54 AM EST
Do you want to create the table dynamically?? or based on your analysis you want to create the table first and load the data!!
Are you using Oracle or SQL Server??
Thanks
Vijaya Kadiyala
Http
://dotnetvj.blogspot.com