Auto detecting SqlServer version.