sql-server-data-tools

Improve the performance of dacpac deployment using c#

痴心易碎 提交于 2019-12-23 12:52:35
问题 We are deploying to MS SQL Server localdb for integration testing. We build a Database Project and the resulting dacpac file is copied in order to be used by the IntegrationTests project. So far we have: DatabaseProject.sqlproj bin/debug/DatabaseProject.dacpac IntegrationTests.csproj bin/debug/DatabaseProject.dacpac We have an assembly setup in the IntegrationTests project where a new fresh database is created and the dacpac is deployed to localdb . In the TearDown the database is deleted so

SQL Server Data Tools: Error loading custom DeploymentPlanModifier: Required contributor with id could not be loaded

好久不见. 提交于 2019-12-23 07:23:48
问题 I need to intercept an SSDT build to modify the build script. I've followed the MSDN Deployment Plan Modifier tutorial, but when I attempt to build the database project, I get the following error: Required contributor with id 'MyDeploymentContributor.SqlRestartableScriptContributor' could not be loaded. I am using Visual Studio 2012 (Version 11.0.61219.00 Update 5) and SSDT Version 11.1.50730.0. I signed the assembly but did not specify a password. I've followed several solutions I've found

Power BI Slow with SSAS Multidimensional Cube

霸气de小男生 提交于 2019-12-23 07:00:09
问题 We are implementing Power BI with SSAS Cube Direct Query. For some reason, SSAS Power BI is extremely slow performance, however using SSDT SSAS Application or Power View or Excel is Much faster. I read that Power BI converts SSAS Multidimensional models by converting MDX to a DAX query. Is there any method to speed up Power BI queries for SSAS, or use MDX queries directly? We are applying SSAS Multidimensional model. 回答1: I don't think that the performance issue is caused by converting MDX

Schema Diff Timeout issue with Visual Studio 2017

只谈情不闲聊 提交于 2019-12-23 02:07:20
问题 When perform schema diff for 2 databases with Visual Studio Pro 2017, I'm facing with issue about schema diff timeout because the database in server too large, so the result always display no differences detected. With Visual Studio 2015, I can workaround by increasing the "QueryTimeoutSeconds" in regedit and it's working as normally. But when upgrade to Visual Studio 2017, I can't find anywhere have this value Have anyone experiance with this issue and have any solution workaround? My

SSDT, SSDT-BI confusion in backwards compatibility for different SQL version

风格不统一 提交于 2019-12-22 14:06:41
问题 After extensively searching over google about SSDT and SSDT-BI for different SQL Server versions, I would like someone to pin-point differences and clear my messed up thoughts ! Aim: To upgrade SSIS packages from sql server-2012 to sql server-2014. Originally build from: build on SSDT-BI 2010 Shell(Integrated) which were deployed on SQL Server 2012 Enterprise edition. Now I need to deploy them on SQL Server 2014 Developer edition (for test purpose). I have successfully installed SSDT-BI 2013

Visual Studio Database project target platform in publish profile

耗尽温柔 提交于 2019-12-22 10:37:56
问题 Is it possible for me to specify the Target Platform (SQL Server 2014, SQL Server 2016, Azure, etc) in a publish profile? I have a database project that I sometimes deploy to a local SQL Server 2016 instance, and other times deploy to an Azure SQL database. I would like to just specify 2 different publish profiles and have the target platform be changed on the fly at that time. Is this possible? 回答1: Azure, MSSQL 2014, MSSQL 2016 have different limitations and requirements to Database Project

SSDT transactional publish?

。_饼干妹妹 提交于 2019-12-21 21:09:01
问题 Using msbuild with SSDT, I have tried IncludeTransactionalScripts, but it seems to only put each statement in an individual transaction. Is it possible to publish multiple database projects as a transaction? If not, can I at least make sure that each Project is published within a transaction? 回答1: For anybody else who found this question, but didn't know where to look: There is a publish setting, "Include transactional scripts", that begins a transaction at the start of the publish script. It

Unresolved References to Same Database Project

谁说胖子不能爱 提交于 2019-12-21 07:50:10
问题 I've created a SQL Server database project in Visual Studio 2013 and imported a DACPAC taken from a production database. When I tried to build the project I get hundreds of SQL71501 and SQL71561 errors (both of which are "unresolved reference to an object"). Examining the scripts the problem is that many views and stored procedures use three part names: [database].[schema].[object]. It appears that Visual Studio 2013 throws this error whenever it comes across a three part name that includes

How to publish DACPAC file to a SQL Server database project via SQLPackage.exe of SSDT?

我是研究僧i 提交于 2019-12-21 03:51:05
问题 I'm using SSDT for Visual Studio 2012 here and using its command-line tool SQLPackage.exe to publish a .dacpac file. I want to publish that to an SQL Server database project . I'm trying to use parameter at this guide but cannot find ways how to do it. How can I do that? 回答1: Are you trying to publish to a Database, or create a database project from a dacpac? These are two different things. To create a database project based on a dacpac, create a new SQL Server Database Project in Visual

How to make DACPAC update only one schema?

半腔热情 提交于 2019-12-21 01:26:22
问题 I have a VS2013 solution with *.sqlproj project that contains objects specific to this solution. The issue is that this is database common also for other projects. My problem is to automatically deploy changes within my schema to database without affecting other objects. By default DACPAC updates whole database that is not desired in my case. I tried to write deployment contributor http://msdn.microsoft.com/en-us/library/dn268597(v=vs.103).aspx but it seems there is no way to have it within