further improvements to sql server connection - now properly uses the "domain" property of the asset