What I need to do is setup a DTS pull from another system. The problem is that the machine that I am pulling from is VERY VERY slow. The only query that I can run without timing out the ODBC connection is :
SELECT * FROM SCHEDULE WHERE DATE='2005-04-25'
What I need to do is setup a DTS job that pulls the schedules for just the current day. The machine that I am pulling from is not a SQL Server machine. I am pretty sure that it's a VERY old unix box running ingres. If I try a BETWEEN statement, it times out. If I try to put in a calculated function in place of the '2005-04-26', it times out.
I need a way to change the sql in the Transform Data Task of the DTS job. Can I just modify the system table and change the sql there? If so, then what table would I change?
I know that everyone is going to tell me to just define some variables and put the ? in the query. I have tried this and I get an ODBC error. Maybe I have the syntax wrong. I setup the variable in the GUI and made the following change to the SQL:
SELECT * FROM SCHEDULE WHERE DATE=?
It parses, but then I get the following error when I run it:
Multi-step ODBC DB operation generated errors. Check each OLE DB status value, if available. No work was done.
Thanks in advance for any replies to this post.
Will
SELECT * FROM SCHEDULE WHERE DATE='2005-04-25'
What I need to do is setup a DTS job that pulls the schedules for just the current day. The machine that I am pulling from is not a SQL Server machine. I am pretty sure that it's a VERY old unix box running ingres. If I try a BETWEEN statement, it times out. If I try to put in a calculated function in place of the '2005-04-26', it times out.
I need a way to change the sql in the Transform Data Task of the DTS job. Can I just modify the system table and change the sql there? If so, then what table would I change?
I know that everyone is going to tell me to just define some variables and put the ? in the query. I have tried this and I get an ODBC error. Maybe I have the syntax wrong. I setup the variable in the GUI and made the following change to the SQL:
SELECT * FROM SCHEDULE WHERE DATE=?
It parses, but then I get the following error when I run it:
Multi-step ODBC DB operation generated errors. Check each OLE DB status value, if available. No work was done.
Thanks in advance for any replies to this post.
Will