I am having trouble setting up a DTS package. I am VERY new at this so please try to put up with my stupid questions. I have a large text file I want to import into a tempory table, groom, and then load into the primary table. To do all of this I broke the process up into 7 different DTS packages and then scheduled them as different steps in one job. Here is my problem...
This process tests to see if a file has been updated and then imports the file if it has not already been imported today. I have a DTS package that tests if the file has been updated. I have had NO luck setting a DTS package to see if the job has already run today. My plan was to write to a log file when the process was done, or use the sysjobhistory table. Then I should be able to look at that table and tell if it has run today. For the life of me I can not figure out how to do that. The best thing I could think of was to use a VB Script in a DTS package to open a recordset and test for EOF and BOF, but I have spent 2 days trying to open a recordset in VB Script in a DTS package. I need to do it in a DTS package because I need it to return a Success or Failure so it can be a step in my scheduled job.
Thanks so much,
sabloomer
This process tests to see if a file has been updated and then imports the file if it has not already been imported today. I have a DTS package that tests if the file has been updated. I have had NO luck setting a DTS package to see if the job has already run today. My plan was to write to a log file when the process was done, or use the sysjobhistory table. Then I should be able to look at that table and tell if it has run today. For the life of me I can not figure out how to do that. The best thing I could think of was to use a VB Script in a DTS package to open a recordset and test for EOF and BOF, but I have spent 2 days trying to open a recordset in VB Script in a DTS package. I need to do it in a DTS package because I need it to return a Success or Failure so it can be a step in my scheduled job.
Thanks so much,
sabloomer