简体   繁体   English

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

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

I'm playing with a SQL Server database project with Visual Studio 2013 on Windows 2012 R2. 我在Windows 2012 R2上使用Visual Studio 2013玩SQL Server数据库项目。 Below is my code and you can download the whole project source code from my shared dropbox link at https://www.dropbox.com/s/aalnlwvxutr4g0f/UDF.zip?dl=1 下面是我的代码,您可以从我的共享保管箱链接下载整个项目源代码, 网址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);
    }
}

When I try to build the solution, I got the following message. 当我尝试构建解决方案时,我收到以下消息。

------ Build started: Project: UDF, Configuration: Debug Any CPU ------ Creating a model to represent the project... Done building project "UDF.sqlproj" -- FAILED. ------ Build build:项目:UDF,配置:调试任何CPU ------创建一个代表项目的模型...完成构建项目“UDF.sqlproj” - 失败。

Build FAILED. 建立失败。 ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== ==========构建:0成功或最新,1失败,0跳过==========

Essentially it tells me the build failed but I can't find any specific errors. 基本上它告诉我构建失败但我找不到任何具体的错误。 Also there is nothing listed under the Error List pane. 此外,“错误列表”窗格下没有列出任何内容。 Please point me the right direction? 请指出正确的方向?

You need to install the last version of SQL Server Data Tools here is the link 您需要在此处安装最新版本的SQL Server Data Tools链接

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

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

after install restart computer and try to build again. 安装后重新启动计算机并尝试再次构建。

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

相关问题 从 Visual Studio 2013 数据库项目中清理 SQL Server 数据库 - Clean SQL Server database from Visual Studio 2013 database project Visual Studio 2013 SQL Server项目部署/发布 - Visual Studio 2013 SQL Server Project Deployment/Publish Visual Studio数据库项目和SQL Server管理 - Visual Studio Database Project and SQL Server Management 从Visual Studio 2013调用SQL LocalDb自动实例启动失败,但不是SQL Server Management Studio - SQL LocalDb Automatic Instance Startup Failure when called from Visual Studio 2013, but not SQL Server Management Studio 如何在Visual Studio 2013中创建数据库项目 - How to create a database project in Visual Studio 2013 Visual Studio 2013与SQL Server 2014的连接 - Visual Studio 2013 Connection to SQL Server 2014 无法从Visual Studio数据库项目连接到SQL Azure服务器 - Unable to connect to a SQL Azure server from a Visual Studio database project 如何将断开视图添加到Visual Studio SQL Server数据库项目 - How to add breaking views to an Visual Studio SQL Server Database Project 在Visual Studio Express 2013中为C#项目的本地测试设置SQL数据库的最简单方法 - Easiest way to set up SQL Database for local testing of C# project in Visual Studio Express 2013 Visual Studio'SQL Server 2008 Server Project'与'Sql Server 2008数据库项目'? - Visual Studio 'SQL Server 2008 Server Project' vs. 'Sql Server 2008 Database project'?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM