TDQ-9411 1.Support to preview on MSSQL with sso mode. 2.code refactor.