• how to reuse this machine 荣


    我安装vsts的时候,出现提示说:
    Setup has detected existing Team Foundation database on this machine.

    并且提示说在附加的文档中找“how to reuse this machine”的解决方案,但是我怎么就没有找到相关的文字。





    在安装VSTF遇到如下的错误信息:
    Setup has detected existing Team Foundation database on this machine

    由于您已经试图安装过VSTF,所以在SQL Server 2005中会有相应的数据库。这些数据库会影响你再次安装VSTF.  在这里,我推荐您可以采用如下的办法先删除VSTF安装在SQL Server 2005中的数据库。

    1.运行“IISRESET /stop”和“net stop ReportServer”来确保这些数据库没有被使用。

    2.然后您可以在SQL Server Management Studio手工删除VSTF安装的数据库。当然,如果您没有在SQL Server 2005中创建过新的数据库。您可以删除除了'master', 'model', 'msdb', 'tempdb'这四个数据之外的所有数据库。除了手工删除之外,您也可以运行如下的SQL脚本。
    USE master
    GO
    DECLARE @dbname sysname
    DECLARE @SQL nvarchar(1000)

    DECLARE cur CURSOR FORWARD_ONLY KEYSET FOR

    SELECT name FROM sysdatabases WHERE name not in ('master','model','msdb','tempdb')

    OPEN cur
    FETCH NEXT FROM cur INTO @dbname
    WHILE @@FETCH_STATUS = 0
    BEGIN
    SET @SQL = N'DROP DATABASE ' + @dbname
    exec sp_executesql @SQL
    FETCH NEXT FROM cur INTO @dbname
    END
    CLOSE cur
    DEALLOCATE cur

    另外,关于您遇到的第一个问题,请您先检查在您的机器上是否安装了Reporting Service. VSTF需要使用Reporting service来提供报表功能。如果没有安装,请您先安装Reporting Service. 然后使用命令“net start reportserver”来启动相应的服务。

  • 相关阅读:
    在关闭窗体时弹出对话框
    使应用程序在进程中消失
    禁用窗口上的关闭按钮
    洛谷P1080 国王游戏
    洛谷P1443 马的遍历
    算法竞赛入门经典第二版 随笔1
    AcWing 794. 高精度除法
    AcWing 793. 高精度乘法
    AcWing 792. 高精度减法
    AcWing 791. 高精度加法
  • 原文地址:https://www.cnblogs.com/admin11/p/272246.html
Copyright © 2020-2023  润新知