gotreply
asked on
import flat file into two tables
trying to load a text files into 2 mssql tables. the text file contains rows of record where if it starts with H (header) will go to tab1 & if it starts with numeric will go to tab2.
example of the text file are like this
http://www.geocities.com/alexlow2020/sample.txt
and i have to import into below table
http://www.geocities.com/alexlow2020/table.jpg
the text file have fix char location & i have to extract it out to put into specific col.
anyone have any ideas how to do this or done it b4 ? thanks
example of the text file are like this
http://www.geocities.com/alexlow2020/sample.txt
and i have to import into below table
http://www.geocities.com/alexlow2020/table.jpg
the text file have fix char location & i have to extract it out to put into specific col.
anyone have any ideas how to do this or done it b4 ? thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thks for the help, have solve it after various try, ur comment did give me some idea to furthur my experiment.
You will have to write some long SQL, specifiying all the columns, splitting up the data, but you can be assured that this is the most easy-to-support and flexible solution i found until now.
CHeers