I've got a LotusScript agent (Domino 7) that is
(a) using LSXODBC or LSXLC (both have the same problem)
(b) Accessing data on MS SQL Server 2008
(c) Iterating over one table - header table
(d) For each record in the the header table, fetching details in the second table - detail table
The problem is, the records in the second table are just not being returned if the detail query runs using the same Connection object as the header query. If I create a second connection and use that, everything is fine. Otherwise, only the very last Header record returns anything for the detail record. Hope this makes sense.
If I replace the sql server with an access database connection, there is no problem. Everything works. My guess is something about having references to two result sets over a single connection is causing issues.
So, is there something I need to change on the SQL Server? In the connection? Somewhere? Why would this work for Access, but not for Sql Server?
Appreciate your help.