sql - Visual Studio 2013 SQL Server 数据库项目构建失败

标签 sql sql-server visual-studio-2013 sql-server-data-tools

我正在 Windows 2012 R2 上使用 Visual Studio 2013 处理 SQL Server 数据库项目。下面是我的代码,您可以从我的共享保管箱链接 https://www.dropbox.com/s/aalnlwvxutr4g0f/UDF.zip?dl=1 下载整个项目源代码

using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;

public partial class UserDefinedFunctions
{
    [Microsoft.SqlServer.Server.SqlFunction]
    public static SqlString Greetings(SqlString name)
    {
        // Put your code here
        return new SqlString("Hello " + (string)name);
    }
}

当我尝试构建解决方案时,我收到以下消息。

------ Build started: Project: UDF, Configuration: Debug Any CPU ------ Creating a model to represent the project... Done building project "UDF.sqlproj" -- FAILED.

Build FAILED. ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

本质上它告诉我构建失败,但我找不到任何具体错误。此外,“错误列表” Pane 下没有列出任何内容。请给我指出正确的方向吗?

最佳答案

您需要安装最新版本的 SQL Server Data Tools 这是链接

http://msdn.microsoft.com/en-US/data/hh297027

http://go.microsoft.com/fwlink/?linkid=393521&clcid=0x409

安装后重新启动计算机并尝试再次构建。

关于sql - Visual Studio 2013 SQL Server 数据库项目构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29093735/

相关文章:

sql-server - SSIS 2012 - 条件 header 的位置

vb.net - 子窗体的最大化状态在 MDI 容器中使用时无法正常工作 (Visual Basic 2013)

.net - 在 Visual Studio 中禁用迁移报告

html - 在 Visual Studio 2013 或 2010 中查找并替换多行

sql - 错误 'where clause' matlab 中使用字符串数组的未知列

sql - 计算Postgresql中的日期差异

sql - 项目计数的运行总和(给定项目人口变化的库存表)

sql-server - SQL server 2005中 "select 123.866"的数据类型是什么?

SQL Server : Error converting data type nvarchar to numeric depending on WHERE condition used

sql - 将多个值集或数组传递给一个函数