相关疑难解决方法(0)

Visual Studio 2013中的数据库项目部署失败

我在一个解决方案中有一个数据库项目,它不会从Visual Studio 2013部署.它失败并显示错误消息"Unable to connect to target server".

在Visual Studio 2012中打开时,同一项目的部署没有问题.

数据库是Sql 2012托管在Sql 2014引擎(快递)

因此,部署设置(更改名称以保护无辜者):

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <IncludeCompositeObjects>True</IncludeCompositeObjects>
    <TargetDatabaseName>TestDatabase</TargetDatabaseName>
    <DeployScriptFileName>TestDatabase.Database.sql</DeployScriptFileName>
    <TargetConnectionString>Data Source=.\SQL2014;Integrated Security=True;Pooling=False</TargetConnectionString>
    <ProfileVersionNumber>1</ProfileVersionNumber>
  </PropertyGroup>
</Project>
Run Code Online (Sandbox Code Playgroud)

我还尝试使用用户名和密码而不是集成安全性进行部署...

visual-studio-2013 sql-server-2014 sql-server-data-tools

26
推荐指数
1
解决办法
3万
查看次数