sql-server-data-tools

SSDT(SQL Server Data Tools) Missing from Visual Studio 2015

北战南征 提交于 2019-12-09 03:02:32
问题 I've installed Visual Studio 2015, but the ssdt features are missing as you can see below I checked the ssdt option at the setup, and the only thing i did was change the default installation directory from c:/ to d:/ (don't know if it changes anything). When i use the Typical installation, ssdt installs fine, but it installs VS at c:/, and i need it installed at "D:/" ... Here is a screenshot of my VS Setup How can i have SSDT features back? EDIT: To solve my problem i did the fist part of

How to get Type of a column using DacFx api?

独自空忆成欢 提交于 2019-12-08 12:39:03
问题 In SSDT project, using DacFx API, I am querying in memory model of a database. I have been trying to retrieve Type of a column, but cannot figure it out. Any idea how this could be done? private void TestMethod() { using(TSqlModel model = new TSqlModel(SqlServerVersion.Sql110, new TSqlModelOptions {})) { string[] scripts = new[] { "CREATE TABLE t1 (c1 NVARCHAR(30) NOT NULL)", "CREATE TABLE t2 (c2 INT NOT NULL)" }; foreach (string script in scripts) { model.AddObjects(script); } var tables =

Building SSIS .dtproj inside a VSTS Hosted Build Agent

白昼怎懂夜的黑 提交于 2019-12-08 11:44:39
问题 I'm trying to build a SSIS 2016 project, that's been configured with the Project Deployment model in a VSTS build with the intent to deploy the .ispac file onto a SQL Server VM hosted in Azure. Using MSBuild to build the project file returns the following error: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project

visual studio (SSDT) 2017 unable to start debugging

夙愿已清 提交于 2019-12-08 11:37:37
问题 I recently installed a Visual Studio 2017 from SSDT package. I am testing a simple scenario a flat file source and an OLEDB destination with no C# or VB scripts involved, as well there are no debugging breakpoints in the code. When I try to execute package for SSIS project I get the error: Microsoft Visual Studio Unable to start debugging. The debugger is not properly installed. Run setup to install or repair the debugger. ------------------------------ ADDITIONAL INFORMATION: Unable to run

SSDT publish script recreates procedures with no changes

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 10:30:28
问题 I have a database imported into a .sqlproj , and a .publish.xml publish profile which publishes changes to a remote DB. My understanding is that when I right click -> Publish -> Generate Script, it should calculate the diff between the local definitions and the remote DB, and generate a script to bring the remote DB in line. This all seems to work OK, however, the script it generates always contains ALTER FUNCTION and ALTER PROCEDURE statements for the same 40 or so functions and procedures

How to disable predeployment and postdeployment scripts in DacServices.Deploy()

天涯浪子 提交于 2019-12-08 03:39:57
问题 We have some automated dacpac deployment code which correctly handles both a CreateNewDatabase and straightforward Update database scenarios in C# using Microsoft.SqlServer.Dac Now in the CreateNewDatabase case we want to be able to run the DacServices.Deploy() with both the Pre and Post Deployment scripts disabled. I.e. they should not be executed in this scenario. I have tried to find a suitable place in the DacDeployOptions and DacServices objects but cannot find anything that will do this

'AdditionalDeploymentContributors' is not a valid argument for the 'Publish' action

本小妞迷上赌 提交于 2019-12-08 00:57:36
问题 I have a set of views of which only 1 needs to be deployed, a different one in each deployment. Filtering DacPac deployments should do it. I'm aware the out of the box options have improved, but that won't do for my needs. The database is published through SqlPackage it explicitly lists these parameters as valid for the publish action. Yet when I use these, it produces the errors (in red): *** 'AdditionalDeploymentContributors' is not a valid argument for the 'Publish' action. ***

Missing Enumerator in Foreach Loop Editor

孤街醉人 提交于 2019-12-07 10:20:39
问题 I'm on a new laptop, working in Visual Studio 2015 on a SQL Server Integration Services package. In previous versions of Visual Studio there are several options in the Enumerator configuration section, like this... In VS 2015, that section is blank and I cannot populate it with a data set. I have updated SSDT and rebooted. 回答1: The problem was with the Target Server Version in the Project Properties. The new installation of Visual Studio 2015 had it defaulting to vNext. Switching it to SQL

Wrong error in SSIS - [Execute SQL Task] Error: There is an invalid number of result bindings returned for the ResultSetType: “ResultSetType_Rowset”

╄→尐↘猪︶ㄣ 提交于 2019-12-07 04:07:04
问题 I have an Execute SQL task which gives returns only one row with one column - a number. I set my result set to single row. Despite that, the task fails. Why ? How do I fix it ? [Execute SQL Task] Error: There is an invalid number of result bindings returned for the ResultSetType: "ResultSetType_Rowset". 回答1: Probably, you haven't configured your resultset parametrs correctly. To configure it, click on ResultSet in the Execute SQL Task, click Add. In the 'ResultSetName' column, enter the exact

SSIS Package Stuck at “Created Execution” Status

孤街浪徒 提交于 2019-12-07 03:04:15
问题 I recently deployed a update to one of my SSIS projects, and ever since the project has failed it's scheduled runs. The SSIS package appears to be stuck at the "Created Execution" status. There are no messages in the reports to explain this issue. I've attempted to redeploy the project, but the results remain the same. I ultimately had to revert to an earlier version of the deployment in order to bring the system back online, but I am now in a position where I can not update the project. I'm