I am attempting to write a vb.net class file that will look at a file directory that contains multiple text files that are ready to load into sql server 2005 tables.
I want this to be as automated as possible. I would like to be able to "somehow" compare the columns in the text file with the table columns in my database to determine which table the text file should be loaded to. At least I think this would be a good way to accomplish this. But then again, I really have no idea how I am going to do this.
Has anyone every done anything like this before or have an idea of how I could do this.
Pretty much the class file will grab a text file from a folder and determine that the data in this text file belongs to this database table.
Thanks.
I want this to be as automated as possible. I would like to be able to "somehow" compare the columns in the text file with the table columns in my database to determine which table the text file should be loaded to. At least I think this would be a good way to accomplish this. But then again, I really have no idea how I am going to do this.
Has anyone every done anything like this before or have an idea of how I could do this.
Pretty much the class file will grab a text file from a folder and determine that the data in this text file belongs to this database table.
Thanks.