I am trying to insert data from an existing table into a File table. However I just need 2 fields, FileName and Id from that table.
I am trying to create a stored procedure and use it.
insert into bomFile (AtgtId, FileName)
select CAST(FileName AS nvarchar(255)), AtgtId
from bomApplicationImportTgt;
I want to insert all the records of FileName and AtgtId from bomApplicationImportTgt table into bomFile table.