HI Friends
We want to bulk insert into table table1
Create table table1
{
ID,
ProjectID,
Fname
}
Create view VwName
As
(select Fname from table1)
Create procedure prc_insert
@ProjectID int
As
BEGIN
BULK Insert vwName
FROm 'D:\sample.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = ''
)
END
sample.txt content the comma separated Name of User.
Once I execute the procedure 'prc_insert' it will Insert 'Fname' in table 'table1' ,
How do insert/update ProjectID into table 'table1' , I want to pass same projectID in table for once executing the procedure .
Thanks
Please needful