Easy question, not so easy answer..
I have a lot of files I wish to import into SQL Server on a regular basis, like every week. The files are CSV files, each with a different filename.
How can I create a script that will import the files, transfer the filename into a column in the table. I have already looked at the bulk import in BOL, but it's not easy to understand..
Any help is appreciated
I have a lot of files I wish to import into SQL Server on a regular basis, like every week. The files are CSV files, each with a different filename.
How can I create a script that will import the files, transfer the filename into a column in the table. I have already looked at the bulk import in BOL, but it's not easy to understand..
Any help is appreciated