You are right. We can keep the tds version from the login handshake and fall back to this code when the server does not support datimeoffset2.