1 如下图,右键指定库新建查询即可
2 粘贴底部代码后,如下,点击执行查询即可
--查看Citrix站点数据库如下表内容字段
select * from chb_config.Controllers;
select * from ADIdentitySchema.Services;
select * from HostingUnitServiceSchema.Services;
select * from AppLibrarySchema.Services;
select * from DesktopUpdateManagerSchema.Services;
select * from Monitor.Services;
select * from StorefrontSchema.Services;
select * from TrustSchema.Services;
select * from EnvTestServiceSchema.Services;
select * from Analytics.Services;
select * from OrchestrationSchema.Services;
select * from ConfigurationSchema.Services;
select * from ConfigLoggingSiteSchema.Services;
select * from DAS.Services;
3 替换指定表的指定字段内容,如下set sid=“新的内容” where sid=“原来的内容”。
--如下是替换上述表的SID字段内容
update chb_Config.Controllers set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update ADIdentitySchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update HostingUnitServiceSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update AppLibrarySchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update DesktopUpdateManagerSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update Monitor.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update StorefrontSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update TrustSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update EnvTestServiceSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update Analytics.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update OrchestrationSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update ConfigurationSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update ConfigLoggingSiteSchema.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';
update DAS.Services set SID='S-1-5-21-788223459-3112803599-3052912352-2109' where sid='S-1-5-21-788223459-3112803599-3052912352-1104';