2、安装SQL Server 2005,安装完成后打开防火墙的TCP 1433端口和UDP 1434端口,否则无法远程连接。
3、安装Web SharePoint Service SP2中文版,以服务场方式。
4、安装TFS光盘上的两个HotFix补丁后,为安装TFS Server建立三个管理员账号:TFSSETUP、TFSSERVICE、TFSREPORTS。
5、以TFSSETUP账号登录,开始安装TFS Server,安装过程中需要填写TFSSERVICE账号和TFSREPORTS账号。
6、完成安装后,必须在本机安装TFS Explorer。使用TFS Explorer连接到TFS Server进行权限设定,默认只有TFSSETUP账户是TFS的已授权账号。因为WorkGroup版的5授权限制,需要用以下语句在数据库中对用户组进行授权。(参见)
declare @container varchar(100),@member varchar(100)
SELECT @container=[sid]
FROM [TfsIntegration].[dbo].[tbl_security_identity_cache]
where [display_name]=N'Team Foundation Licensed Users' and deleted=0
SELECT @member=[sid]
FROM [TfsIntegration].[dbo].[tbl_security_identity_cache]
where [display_name]=N'Domain Admins' and deleted=0
insert [TfsIntegration].[dbo].[tbl_security_membership_cache]
( [container],[member])
values(@container,@member)
SELECT @container=[sid]
FROM [TfsIntegration].[dbo].[tbl_security_identity_cache]
where [display_name]=N'Team Foundation Licensed Users' and deleted=0
SELECT @member=[sid]
FROM [TfsIntegration].[dbo].[tbl_security_identity_cache]
where [display_name]=N'Domain Admins' and deleted=0
insert [TfsIntegration].[dbo].[tbl_security_membership_cache]
( [container],[member])
values(@container,@member)
7、调整TFS的分析频率:
执行:net stop TFSServerScheduler
再调用以下链接:
http://localhost:8080/Warehouse/V1.0/warehousecontroller.asmx
选择ChangeSetting,settingID填写RunIntervalSeconds,newValue填写执行分析服务的间隔时间,单位秒。