Glowworm27
Programmer
Hi all.
I have a DTS package that reads a folder and looks for *.mdb files,
then it should get the first file, Dynamicaly set the Access Connection Object with the filename, then import the 2 tables I want out of the Access mdb, into SQK 2k database. Then after it has imported the data, delete the file, then loop back around to the beginning, and grab the next filename in the folder, and repeat the import process.
I have done this successfully when importing a Text, or csv file but for some reason once it has finished importing, the Access database stays open, and I cannot delete the file. Is there anyway to close the connection to that database after importing it?
Thanks in advance.
George Oakes
Check out this awsome .Net Resource!
I have a DTS package that reads a folder and looks for *.mdb files,
then it should get the first file, Dynamicaly set the Access Connection Object with the filename, then import the 2 tables I want out of the Access mdb, into SQK 2k database. Then after it has imported the data, delete the file, then loop back around to the beginning, and grab the next filename in the folder, and repeat the import process.
I have done this successfully when importing a Text, or csv file but for some reason once it has finished importing, the Access database stays open, and I cannot delete the file. Is there anyway to close the connection to that database after importing it?
Thanks in advance.
George Oakes
Check out this awsome .Net Resource!