sql-server-data-tools

SQL Server Data Tools 2015 installation error

吃可爱长大的小学妹 提交于 2019-12-30 06:25:18
问题 I'm trying to install SQL Server Data Tools - Visual Studio 2015, but I keep getting an "Unspecified error". The log file is at https://drive.google.com/open?id=0B3CEKzS2Sw8OODNJOXZJVGRWQlU. I already have Visual Studio Professional 2015 installed. I want to install SSDT 2015 because my databases were recently migrated from SQL Server 2008 R2 to 2014, and I need to use SSIS. Previously, I used SQL Server Business Intelligence Development Studio to create my DTS packages, which I still have

Can an SSDT project build use multiple cores?

匆匆过客 提交于 2019-12-25 07:26:56
问题 I have a very large SSDT project in VS 2013 that takes about 30 mins to build. When building it's obvious that msbuild.exe is only using one core. Is there a way to get an SSDT project to utilise all cores on the server? 回答1: No. Normal things to try are: Disable treat t-SQL warnings as errors Split the project into multiple ones and use dacpac references on parts of it that don't change There is an option that changes how the models are generated from disk to memory, if your hitting the 2gb

Can I automatically generate a change script using a .scmp file?

本秂侑毒 提交于 2019-12-25 03:34:08
问题 We're using database projects here at work and for our deployment to the production server, our current process is to manually run a compare using a saved .scmp file that compares the database project to our production database (using a read-only login), then generate a SQL script that we give to our I.T. support guy to run on production. We also do a build to generate our post-deployment script, and we give that one to our guy to run as well. I'm trying to automate as much of this process as

SQL Server ScriptDom Parsing

做~自己de王妃 提交于 2019-12-24 11:36:39
问题 The team of developers I work with are using SQL Data Projects for a large piece of work we have to do against an existing database. We are a few weeks in and there have been a few gotchas, but the experience has been generally good. However, when we get to deploy to production, the dba team have refused to accept DACPACs as a deployment method. Instead, they are want to see a traditional script per DML or DDL statement. The current thinking is to create a difference script between the

What SQL Server 2017 features are not supported in Entity Framework Core code first?

走远了吗. 提交于 2019-12-24 11:12:39
问题 Our team is thinking of utilizing Entity Framework Core code-first to help model the database. We can have both DB projects and EF models, as per article here Database Projects vs. Entity Framework Database Migrations utilizing schema compares, just trying to figure out what will be the source of truth? Does Entity Framework support all features in SQL Server SSDT Database Projects? What features does EF Core 2 not support? (eg, does it not support any of following: triggers, views, functions

Unable to publish DACPAC to Azure SQL Database using sqlpackage.exe

℡╲_俬逩灬. 提交于 2019-12-24 08:25:47
问题 When trying to apply a DACPAC to an Azure SQL Database I'm getting the following from sqlpackage.exe: *** An error occurred during deployment plan generation. Deployment cannot continue. The Element or Annotation class SqlDatabaseOptions does not contain the Property class CatalogCollation. I've managed to use VS2017 with SSDT to create a package and then deploy it to another database using the SQL Server Object Explorer but it fails when I use sqlpackage.exe found in C:\Program Files (x86)

Database Reference in SSDT project with UDFs and Views

╄→尐↘猪︶ㄣ 提交于 2019-12-24 07:30:02
问题 Running into a weird issue. Assuming there are two database projects in one empty solution, Bart and Homer. Bart has been added as a Database Reference to Homer. Bart project defines a function: CREATE FUNCTION [dbo].[Message]() RETURNS NVARCHAR(255) AS BEGIN RETURN 'I am a value returned from another database' END Then the Homer project defines a table: CREATE TABLE [dbo].[Messages] ( [Id] INT NOT NULL PRIMARY KEY ) and a view: CREATE VIEW [dbo].[MessagesV] AS SELECT Id, Bart.dbo.Message()

Custom templates for SSDT

巧了我就是萌 提交于 2019-12-23 17:25:02
问题 What is the correct folder name to store a custom Item Template for a SQL Server Data Tools Database Project? eg. What sub-folder should it live in under C:\Users\accountname\Documents\Visual Studio 11\Templates\ItemTemplates The SSDT-provided templates seem to be located under C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\SQLDB\Extensions\SqlServer (For VS2010, substitute '10' for '11' in the paths above) 回答1: You save the Template RDL in C:\Program

SSDT schema compare lock SET QUOTED_IDENTIFIER to OFF

允我心安 提交于 2019-12-23 15:39:11
问题 I have Visual studio 2012 installed with SSDT version 11.1.20627.0 installed. One of issue keep bugging me is for all my stored procedures in SSDT project, when try to push it to server using schema compare. The SP's SET QUOTED_IDENTIFIER was always switched to OFF and I cannot find a way to change this behavior. The target database is my local DB and its default QUOTED_IDENTIFIER was changed to ON(True); In Database project property page, The "SET QUOTED_IDENTIFIER" checkbox was checked but

Read SSIS Package File Name From Within Package (Package Deployment)

馋奶兔 提交于 2019-12-23 13:06:12
问题 I created a SSIS Package in Visual Studio SSDT 2012, using Package Deployment model. Is there any way to get access to the package's file name as a readonly variable or property from within the package? I don't see it listed as a system variable, is there any way maybe through the script task? 回答1: I think you need to check System variables in the name of [System::PackageName], if you want to rename the package name,then you have to change the Properties. I've attached screenshots for your