Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

insert data from file into sql table

$
0
0

hi
i have flat file like this

TH*4.2*876545*P~~IO*3456*color~

now i have two tables

create table table1
(id nvarchar(10),
 t1  int,
  t2 int primary key,
  t3  nvarchar(5),
i1   int foreign key table2(i1))

create table table2(
id nvarchar(10),
i1  int primary key,
i2 nvarchar(10))

now i need to insert this file record into table describe below.

i cannot do it mannualy.

if i use ssis package ,how can i1 value of table 1 will automatically insetered.

any other way

thanks


Viewing all articles
Browse latest Browse all 24688

Trending Articles