hi,
i loop through a list of records and within that loop recursively i call the same function again (to loop children-data of the parent record). now, for some reason it does not return the max(id) respectively the correct @@IDENTITY key. it somehow seems that the resultset caches it's information. and displays the result from the old query again and again. really strange. any clue how i could ensure the no cache is used?
i loop through a list of records and within that loop recursively i call the same function again (to loop children-data of the parent record). now, for some reason it does not return the max(id) respectively the correct @@IDENTITY key. it somehow seems that the resultset caches it's information. and displays the result from the old query again and again. really strange. any clue how i could ensure the no cache is used?