Added AutoDetectProvider flag to SqlServerFactory.