I would test it in Sql 7.0 as well. The interesting thing is when I contactd Microsoft about this they could not duplicate the error. Maybe it will not fail in your environment. I would be curious to know.
Thanks.
Joe
If you are in SQL 2000 the divide by zero error will work. However if you are in SQL 7 it will not. If the error is not generated in the first line of the execute sql task code, the task will not fail not matter what happens in the execute sql task.
Ex.
execute sql task:
select @@version...
This should work:
SELECT i.EmployeeNum, c.Managernum AS CorpITManager
FROM employees i
INNER JOIN (SELECT * from employees) r
ON i.Managernum = r.EmployeeNum
INNER JOIN (SELECT * from employees) c
ON r.Managernum = c.EmployeeNum
There is no direct equivalent of the VFP "$" (contained in)function in T-SQL. Below is an example of something that will give you simliar results.
SELECT itemno, description
FROM mytable
WHERE LEFT(class,1) IN ('A','B'C')
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.