>>Building things the right way to begin with usually makes performance better.
>>
>>>After moving this into T-SQL it now executes twice as fast.
>
>It was interesting to compare. The T-SQL code is not too simple either (uses a cursor and 3 temp tables)
The T Sql code also has the advantage that it uses your strenghs. You do some really good stuff in T SQl ( I know you've often helped me ) and I think this is really a case where there is no advantage to use ADO- especially datasets.
I know since working with Denis and getting comfortable with set-based thinking I am looking at design very differently from my brain getting stuck in the middle tier ( mostly a hangover from my VFP days and from the Winforms days of my first .NET stuff. )
I think now that it is so easy to pass table values params around in SPs a lot of stuff gets a lot easier.
Charles Hankey
Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy
Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.
-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin
Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.