IF EXISTS( SELECT * FROM qd186.saidao_main.dbo.TClientServerConfig AS A, qd186.saidao_main.dbo.TClientInfo AS B, qd186.saidao_main.dbo.TServerInfo AS C WHERE 1=1 AND A.FClientId = B.FClientId AND B.FServerId = C.FServerId AND C.FHostId = ''qd11'' AND FConnectionString LIKE ''%'' + db_name() +''%'' )