I have an table with file names with complete path.
select * from t_file_log
1 C:\Load\file1.csv
2 C:\Load\file2.csv
=====================
I have an folder with below files
file1.csv ,file3.csv, file4.csv
=====================
I want to create an package where i can find the file names not in table, present in folder and insert record into table of the files.
======================
Result
====
select * from t_file_log
1 C:\Load\file1.csv
2 C:\Load\file2.csv
3 C:\Load\file3.csv -- Row added via pacakge
4 C:\Load\file4.csv -- Row added via pacakge
I need to do this using for each loop. avoid any batch file.
My Requirement is getting the file names from folder into SQL table.
ShanmugaRaj