UDF: How to get record size berofe creating it

You can estimate the size based on the constituents of a record, but you may not know the exact size until you create one. There are a couple of older posts that talk to this issue here and here. Please also look at the useful info in the capacity planning page.