![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear all, Since I'm reasonably new in this field, I hope you can help me with a strange problem. At least: for me it's strange! I have made a few data copy-and-filter steps, copying data from one table to another, using DTS-packages based on queries. These DTS-packages are combined in a DTS-package (workflow) which is scheduled to run several times a day. The functionality of one of these copy-steps is to check if the data to be copied is new: there is a socalled "check-table" which contains all data since this functionality exists. The query on which this is based is the following: start query quote "SELECT dbo.tblWBGent_002.* FROM dbo.tblWBGent_002 LEFT OUTER JOIN dbo.tblWBGent_check ON dbo.tblWBGent_002.AllocationNumber = dbo.tblWBGent_check.AllocationNumber AND dbo.tblWBGent_002.Time2ndWeighing = dbo.tblWBGent_check.Time2ndWeighing AND dbo.tblWBGent_002.Date2ndWeighing = dbo.tblWBGent_check.Date2ndWeighing WHERE (dbo.tblWBGent_check.Date2ndWeighing IS NULL) " end query quote If I run this query, no problem exists. If I run the DTS-package which uses this query to copy data from table 1 to table 2, execution takes forever and I have to kill the process manually. However, this does not happen all the time (to make it even stranger in my eyes). Is there anyone who would have any suggestions in which direction I have to look for solving this problem? Any help is much appreciated! Thanks in advance, Frank Hepkema Infoprofs Amsterdam, The Netherlands |
#3
| |||
| |||
|
|
Hi Frank, What do you mean exactly? That query is inside a Execute Script Task or is embedded with VbScript inside a ActiveX Script Task. Let me know "Fr@nk" wrote: Dear all, Since I'm reasonably new in this field, I hope you can help me with a strange problem. At least: for me it's strange! I have made a few data copy-and-filter steps, copying data from one table to another, using DTS-packages based on queries. These DTS-packages are combined in a DTS-package (workflow) which is scheduled to run several times a day. The functionality of one of these copy-steps is to check if the data to be copied is new: there is a socalled "check-table" which contains all data since this functionality exists. The query on which this is based is the following: start query quote "SELECT dbo.tblWBGent_002.* FROM dbo.tblWBGent_002 LEFT OUTER JOIN dbo.tblWBGent_check ON dbo.tblWBGent_002.AllocationNumber = dbo.tblWBGent_check.AllocationNumber AND dbo.tblWBGent_002.Time2ndWeighing = dbo.tblWBGent_check.Time2ndWeighing AND dbo.tblWBGent_002.Date2ndWeighing = dbo.tblWBGent_check.Date2ndWeighing WHERE (dbo.tblWBGent_check.Date2ndWeighing IS NULL) " end query quote If I run this query, no problem exists. If I run the DTS-package which uses this query to copy data from table 1 to table 2, execution takes forever and I have to kill the process manually. However, this does not happen all the time (to make it even stranger in my eyes). Is there anyone who would have any suggestions in which direction I have to look for solving this problem? Any help is much appreciated! Thanks in advance, Frank Hepkema Infoprofs Amsterdam, The Netherlands |
#4
| |||
| |||
|
|
Dear all, Since I'm reasonably new in this field, I hope you can help me with a strange problem. At least: for me it's strange! I have made a few data copy-and-filter steps, copying data from one table to another, using DTS-packages based on queries. These DTS-packages are combined in a DTS-package (workflow) which is scheduled to run several times a day. The functionality of one of these copy-steps is to check if the data to be copied is new: there is a socalled "check-table" which contains all data since this functionality exists. The query on which this is based is the following: start query quote "SELECT dbo.tblWBGent_002.* FROM dbo.tblWBGent_002 LEFT OUTER JOIN dbo.tblWBGent_check ON dbo.tblWBGent_002.AllocationNumber = dbo.tblWBGent_check.AllocationNumber AND dbo.tblWBGent_002.Time2ndWeighing = dbo.tblWBGent_check.Time2ndWeighing AND dbo.tblWBGent_002.Date2ndWeighing = dbo.tblWBGent_check.Date2ndWeighing WHERE (dbo.tblWBGent_check.Date2ndWeighing IS NULL) " end query quote If I run this query, no problem exists. If I run the DTS-package which uses this query to copy data from table 1 to table 2, execution takes forever and I have to kill the process manually. However, this does not happen all the time (to make it even stranger in my eyes). Is there anyone who would have any suggestions in which direction I have to look for solving this problem? Any help is much appreciated! Thanks in advance, Frank Hepkema Infoprofs Amsterdam, The Netherlands |
![]() |
| Thread Tools | |
| Display Modes | |
| |