refactoring
support for varbinary(max)