I'm creating a solution, that several times need to make requests to my SQL-server. These requests are in several occasions based on the same returned recordset, so I need to know, if SQL-server 7 caches an inner SQL seperately from the outer SQL?
Ex.
select * from A where ID in (select ID from B where Index < 100)
And afterwards...
select * from C where ID in (select ID from B where Index < 100)
In the example above, does the inner SQL: select ID from B where Index < 100 cache seperately, so that the second SQL in the example will be performed faster than the first?
Regards
Jacob B. Nielsen
Jyske Bank
Denmark
Ex.
select * from A where ID in (select ID from B where Index < 100)
And afterwards...
select * from C where ID in (select ID from B where Index < 100)
In the example above, does the inner SQL: select ID from B where Index < 100 cache seperately, so that the second SQL in the example will be performed faster than the first?
Regards
Jacob B. Nielsen
Jyske Bank
Denmark