繁体   English   中英

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

[英]Visual Studio 2013 SQL Server database project build failure

我在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 build:项目:UDF,配置:调试任何CPU ------创建一个代表项目的模型...完成构建项目“UDF.sqlproj” - 失败。

建立失败。 ==========构建:0成功或最新,1失败,0跳过==========

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

您需要在此处安装最新版本的SQL Server Data Tools链接

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM