OK this is really strange.
If I run this:
SELECT dbo.MyClrFunction(sDateField)
FROM #myTempTable
it works fine on 18000 rows.
If I run this:
UPDATE #myTempTable
SET sDateField2 = dbo.MyClrFunction(sDateField)
FROM #myTempTable
I get the errors and have to drop and recreate the function and assembly to make it work again.
I really dont understand this...
Ben
^ Thats me!
----------------------------------------
01010111011010000110000101110100 01100001 0110001101101111011011010111000001101100011001010111010001100101 01110100011010010110110101100101 011101110110000101110011011101000110010101110010
----------------------------------------