You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sql-tools/查询指定host的数据库.txt

8 lines
319 B

1 year ago
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() +''%'' )