![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi. I have a flat file that has many cols. the file has to be instered into many tables(each group of cols. for a table). one group has 6 cols. each of them has to be insterted into the same table with a corresponding FK value (some ID at the beginning of the line). there is a way (putting this values in an array and looping through). does anybody know how to do that in ActiveX script. thanks . |
#3
| |||
| |||
|
|
Hi Awi, Would you mind sending some representative data, so that we can get a better understanding of what you're trying to do? Give us an examle of the input and output you'd like to see. -- Regards, Don R. Watters Data Group Manager PhotoWorks, Inc. "awi" <awi (AT) kteer (DOT) com> wrote in message news:Ov2oTz3uDHA.620 (AT) TK2MSFTNGP10 (DOT) phx.gbl... Hi. I have a flat file that has many cols. the file has to be instered into many tables(each group of cols. for a table). one group has 6 cols. each of them has to be insterted into the same table with a corresponding FK value (some ID at the beginning of the line). there is a way (putting this values in an array and looping through). does anybody know how to do that in ActiveX script. thanks . |
#4
| |||
| |||
|
|
OK Don. on table has 3 col. old_id, New_id and Old_id_type. it is used to match old and new ids in the system (old_id_type is used to mention the table name where the old id came from). now .. every line in the txt file has old_contact_id and new_contact_id : it should be inserted to the table with the word "contact" in the old_id_type . old_address_id and new_address_id : it should be inserted to the table witht the word "address" in the old_id_type. both of them have to be inserted so .. one line of the txt file should produce 2 records in the table. I know that's possible using some premain program and define an array for the values.. I need some examples of that. thanks again . "Don R. Watters" <DonW (AT) PhotoWorks (DOT) Com> wrote in message news:edH4v33uDHA.2880 (AT) tk2msftngp13 (DOT) phx.gbl... Hi Awi, Would you mind sending some representative data, so that we can get a better understanding of what you're trying to do? Give us an examle of the input and output you'd like to see. -- Regards, Don R. Watters Data Group Manager PhotoWorks, Inc. "awi" <awi (AT) kteer (DOT) com> wrote in message news:Ov2oTz3uDHA.620 (AT) TK2MSFTNGP10 (DOT) phx.gbl... Hi. I have a flat file that has many cols. the file has to be instered into many tables(each group of cols. for a table). one group has 6 cols. each of them has to be insterted into the same table with a corresponding FK value (some ID at the beginning of the line). there is a way (putting this values in an array and looping through). does anybody know how to do that in ActiveX script. thanks . |
#5
| |||
| |||
|
|
OK Don. on table has 3 col. old_id, New_id and Old_id_type. it is used to match old and new ids in the system (old_id_type is used to mention the table name where the old id came from). now .. every line in the txt file has old_contact_id and new_contact_id : it should be inserted to the table with the word "contact" in the old_id_type . old_address_id and new_address_id : it should be inserted to the table witht the word "address" in the old_id_type. both of them have to be inserted so .. one line of the txt file should produce 2 records in the table. I know that's possible using some premain program and define an array for the values.. I need some examples of that. thanks again . Processing The Same Row More Than Once |
![]() |
| Thread Tools | |
| Display Modes | |
| |