I'm coding a script generator for my project that will emit all the SQL code necessary to install my SQL CLR object. (No, VS deploy is not enough, sorry.)
When I try to reflect my classes looking for the aggregates I call Type.GetCustomAttributes to see if the struct is an aggregate. However, when the MaxByteSize property of the attribute is set to -1 (no limit on aggregate state size) I get an exception.
I looked into the disassembly of System.Data.DLL and the boundary check is indeed there though SQL server is supposed to handle aggregates larger than 8000 bytes.
View Complete Post