Char & Nchar in CLR

  • I am developping a database with different codes that contain integrity checks. I have developed these checks in TSQL and implemented them as scalar valued functions that I use as check constraints. Since it is pure numerical calculation without data access, this seemed to me to be a good candidate to develop in vb.net. It seems however that in CLR the char() datatype doesn't exist. So I am left with the choice of converting the columns to unicode, doubling the number of bytes stored; or converting at runtime dbo.fn_check(N column) and again taking a performance hit?

    Isn't there another way round?

    Thanks,

    Jan

  • CHAR seems to exist in .net


    Everything you can imagine is real.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply