sql-server-data-tools

SQL deployment automation

99封情书 提交于 2021-02-19 11:51:31
问题 I am trying to automate existing sql server database deployment automation using Jenkins. One of the ways to automate is to include the SQL scripts (stored procedures, views, table creation) in a SQL server Database project using Visual Studio. Use MSBuild to build the project and deploy dacpac using SQLPackage.exe. However, the existing database has reference to other databases inside Stored Procedures/Views so I have import other databases inside the SQL Server Database project.

Conditional Compilation of schema objects in SSDT Project

落花浮王杯 提交于 2021-02-19 08:26:17
问题 Our SSDT database project includes a table that has a computed column that can take one of several forms, depending on customer requirements. I'm trying to figure out how to manage this computed column so that we can still use the Publish function without reverting everyone's columns back to the default. What I'm trying to accomplish can be explained in the following invalid T-SQL code: CREATE TABLE dbo.Customer ( Id INTEGER, Region INTEGER, Name VARCHAR(50), AccountNumber AS dbo

Issue with border lines in a matrix report

那年仲夏 提交于 2021-02-11 14:19:43
问题 I have a requirement to display the Product name and the related Amount in a report grouped by each CategoryId (no need to show categoryId in the report, only used in grouping) as shown below. Below are the design steps. Added a matrix with 2 rows and a column grouping by CategoryId In the first row of matrix, added a tablix with 2 columns (Product and Amount) and row grouping on Product. In the second row of matrix, added a tablix with 2 rows (Subtotal and GrandTotal) and 2 columns (Product

How to find version of installed SSIS

廉价感情. 提交于 2021-02-10 20:20:02
问题 It is local machine without an actual SQL server (just used for development) By running DTEXEC it retreived Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. SQL server 2008R2 is installed with SDK, SSIS, and management studio Visual studio 2013 is installed but due to some unknown reason SSDT did not provide full features to SSIS (included .dtsx cannot open and .sqlproj cannot open) No choice but

SSDT - pre-build automation - setting 'buildAction' flag for stored procedure

陌路散爱 提交于 2021-01-29 08:43:18
问题 I am wondering if anyone has an example of setting a Pre-Build Event (project properties, Build events) on an SSDT project so that we can change a files 'Build Action' from 'build' to None given a project configuration. Something like: if $configuration is x then set buildAction = 'none' on abc.sql else set buildAction = 'build' Regards 回答1: If you have different implementations of the same stored procedure, then you'll probably have 2 options: Create conditional logic inside SP. You'll need

In a MS SSAS Project, creating a Data Source View over Npgsql (PostgreSQL) Data Source produces 42601: syntax error at or near '['

ぐ巨炮叔叔 提交于 2021-01-28 09:39:03
问题 I'm trying to create Data Source View in a Multidimensional SSAS project using MS Visual Studio 2017 with SSDT installed. In the Data Source View Wizard, I select my Npgsql (v. 11.00) based datasource connecting my PostgreSQL 10.5 I created before. No matter which options I select or which tables I choose to work with in the dialogues that follows, after I click the final Finish button I always retrieve a message box stating that "42601: syntax error at or near '['" and preventing me from

In a MS SSAS Project, creating a Data Source View over Npgsql (PostgreSQL) Data Source produces 42601: syntax error at or near '['

拜拜、爱过 提交于 2021-01-28 09:31:04
问题 I'm trying to create Data Source View in a Multidimensional SSAS project using MS Visual Studio 2017 with SSDT installed. In the Data Source View Wizard, I select my Npgsql (v. 11.00) based datasource connecting my PostgreSQL 10.5 I created before. No matter which options I select or which tables I choose to work with in the dialogues that follows, after I click the final Finish button I always retrieve a message box stating that "42601: syntax error at or near '['" and preventing me from

SSDT Publish errors on Creating Publish Preview

我的梦境 提交于 2021-01-20 16:33:28
问题 I am using Visual Studio 2013 to manage a .sqlproj file containing our database schema. The schema has been deployed successfully dozens of times. When attempting to publish to one specific target database, the "Creating publish preview" step appears to fail, but no error is given. The output from the preview includes some expected warnings: The column {...} is being dropped, data loss could occur If this deployment is executed, changes to {...} might introduce run-time errors in {...} This

SSDT Installation fails for VS 2015

北战南征 提交于 2021-01-20 12:48:06
问题 I have Microsoft Visual Studio Professional 2015 installed on my machine, i also have SQL Server 2017 installed. I am trying to install SQL Server Development Tools for BI projects on my machine,i tried installing 'SSDT for VS2015 17.4' , 'SSDT for VS2015 17.3' and also 'SSDT for VS2015 16.5' and everything failed. [5290:0FCC][2020-05-30T11:21:16]: Burn v3.6.3542.0, Windows v6.3 (Build 9600: Service Pack 0), path: C:\Users\honey\Downloads\SSDTSetup (3).exe, cmdline: '' [5290:0FCC][2020-05

SSDT for Visual Studio 2019? [closed]

痞子三分冷 提交于 2020-12-05 05:52:36
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Improve this question I have found the installer for the VS2017 version here, but is there one for the 2019 preview version? 回答1: SQL Server Reporting Services and SQL Server Analysis Services (SSRS, SSDT, SSAS, MSAS): Support for these project types is provided through two extensions in