Questions tagged [ssdt]

SQL Server Data Tools is a free component of the SQL Server platform and is available for all SQL Server users. It provides a modern database development experience for SQL Server versions 2005 and up as well as SQL Azure.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Have two versions of one object in ssdt sql server database project or have objects visible/not visible depending on configuration option selected

I have a database project with 3 tables. 2 of the tables are the same table, but one is configured as a temporal table and the other is not. The 3rd table in the project is the history table for the ...
1
vote
1answer
419 views

View with OPENQUERY won't build in SSDT project

I have an existing database that I'm trying to set up as a database project. I'm not able to get the following statement to build: CREATE view [dbo].[VW_SOMEVIEW] as SELECT * FROM OPENQUERY ([...
1
vote
1answer
106 views

Is there an underling difference between TIMESTAMP and ROWVERSION when creating columns with each?

I'm having problems with SSDT detecting a change to a "TIMESTAMP" column where both the target column and model.xml column definition are of type "TIMESTAMP". When this happens, the following alter ...
0
votes
1answer
12 views

Why does SQLPackage include my table-valued function in deployments when it hasn't changed?

I'm using SQLPackage in TFS to automate an SSDT project/DACPAC deployment with SQL Server 2014. I have a table-valued function that appears in the deployment report and script with every deployment, ...
1
vote
1answer
617 views

SSDT - Exclude certain schema along with unnamed constraint

Task: Automate database deployment (SSDT/dacpac deployment with CI/CD) The database is a 3rd party database It also includes our own customized tables/SP/Fn/Views in separate schemas Should exclude ...
7
votes
1answer
488 views

SSIS Package Not Being Deployed

I have an issue with an SSIS package, that when deployed via VS2017 to the integration services catalog is not actually being deployed. This is an individual package deployment, and not a project ...
5
votes
1answer
482 views

Reinitialize Table Values in SQL SSDT Unit Testing

I am creating SQL Server Unit Tests. We are testing various stored procedures. In Unit testing principles, it is good practice to setup a small database table, populate values, and tear down (...
1
vote
1answer
207 views

Installing SQL Server Tools

In order to set up an SSAS system, I am having to install Visual Studio (SQL Server Data Tools - Business Intelligence) but when I adding this to the instance, it says it has failed the rule "Same ...
0
votes
1answer
484 views

How to avoid dropping schemas when publishing DB in SSDT Database project

When publishing a database from SSDT, there are several options to "do not drop" an object if it is not in the SSDT project. However, it seems that there is no option to avoid dropping schemas. Do ...
3
votes
3answers
643 views

How to Exclude Foreign Keys during Publish action in sqlpackage

I am trying to publish a .dacpac extract to a target database, I want to exclude just the foreign key constraints in all the tables. After going through the ExcludeObjectTypes options I do not find a ...
0
votes
0answers
17 views

Path of ssis package

Good morning all I must migrate this ssis package from SQL 2008 to SQL 2019 I'm trying to see how I can find the physical path of these packages thanks
0
votes
2answers
32 views

Optimizing syncing of large dataset between 2 servers with SSIS

I have two DBs on different servers, Server A and Server B. Both are SQL Servers. I need to keep second DB in sync with the first one. DB schema and tables are identical, but Server A periodically ...
0
votes
1answer
22 views

Excluding database objects from a DacPac database deployment?

As I understand it, a sql server DacPac (visual studio data-tier app) applies to the entire database that it's deployed in. However, for my particular database, I have some tables and stored procs ...
12
votes
3answers
25k views

“Unresolved reference to User” after importing as a VS DB project

I just imported an existing SQL Server 2008r2 production database into a VS 2013 database project. I now get a number of errors along the lines of Error SQL71501: User: [mydbuser] has an ...
0
votes
0answers
47 views

visual studio 2012 ssrs report preview error failed to load assembly could not load file reportingservices

I had used visual studio 2010 data tools earlier. Since i couldn't find it on Microsoft site, had to install visual studio 2012 data tools on my new laptop. When i click preview, i get the error ...
0
votes
1answer
31 views

SSIS Excel Import - First row getting skipped

I am using VS 2017(SSDT) with SSIS(2012). I'm trying to import an Excel file, but the issue is that the first row is getting skipped. I've unchecked First row has column names in Excel Connection ...
0
votes
0answers
12 views

Upgrade DAC wizard rebuilds schemabound views for no apparent reason

We recently did a deployment that included upgrading a database via DACPAC. We extracted the script from the SSMS Upgrade DAC wizard, removed the objectionable parts (dropping users, extended ...
5
votes
3answers
12k views

Script component source won't load when click “Edit Script…”

I'm working on an SSIS package in Visual Studio 2013. For any script component throughout the package, if I double-click on it and then click the "Edit Script..." button, Visual Studio 2012 opens but ...
1
vote
1answer
222 views

SQL Server & SSDT : Error modeling database during Publish after adding CREATE AGGREGATE / EXTERNAL NAME

I am using SSDT to create a database containing CLR user defined aggregates. The aggregates are intended to sit in different schema. That is not possible with CLR objects inside SSDT, without using a ...
1
vote
2answers
193 views

Dev/Test Environment For Databases With Cross-Database Joins

We have existing databases under source control in SQL Server Database Projects with a number of these databases referencing each other. Getting these into projects and source control was challenging ...
1
vote
1answer
431 views

What is the best way to include a large amount of configuration data in a SQL project?

I have a BIDS SQL Server Database Project with a database that I publish dynamically to various servers (SQL2016). It initially starts blank and everything is parameterized. Everything is in Azure ...
1
vote
1answer
463 views

In a DacPac deployment, if a stored procedure that is called by another stored procedure is updated, is the calling stored proc also redeployed?

I noticed that, in my DacPac, after a deployment, two stored procs were given a modified date on sys.objects, almost to the same millisecond. However, I would only expect one of them to have this, ...
7
votes
3answers
4k views

SSDT Drop and Recreate Tables when nothing has changed

We have a Visual Studio Database Project consisting of about 129 Tables. It is the primary database for our Internal Web Based CRM/Call Centre product, which is still under active development. We ...
0
votes
0answers
16 views

SSIS/SSDT Censor Characters in Specific Positions With Flat File

I'm developing an ETL process via SSIS/SSDT, which works with Fixed-Width Flat Files. It has 3 record types, and one of them I need to censor specific characters at a certain position. Does anyone ...
10
votes
1answer
31k views

Using a linked server with OPENQUERY in a database project

I have a SQL Server 2008 running a database I want to throw in TFS. Therefore I used a Visual Studio 2013 database project where I imported the DB. After fixing a bunch of errors I'm stuck with only ...
1
vote
0answers
50 views

SSDT Schema Compare shows same objects to add and delete in destination

When using schema compare, it shows the objects in dbo schema as objects to add in destination and same objects to delete as well. After inspecting the definitions, they appear to be the same. Why ...
4
votes
0answers
316 views

Why is my SSIS package not getting updated?

I have a Integration Services project within SSDT that has multiple packages. When I right click a single package and choose deploy, SSDT says the operation completed successfully. However, when I ...
2
votes
1answer
437 views

SQLPackage resets database recovery model

I am using SQLPackage.exe with database publish profiles to deploy database changes to DEV and QC instances. I have databases in simple recovery mode. But when I deploy changes using SQLPackage, it ...
2
votes
2answers
341 views

Error creating memory optimized filegroup in SSDT

I am attempting to add a memory optimized filegroup to a SQL server database project in SSDT. This is for SQL Server 2017, using Visual Studio 2017. However compiling the project (pressing F5 to ...
1
vote
1answer
330 views

Error with Publish using publish profile -“ DropExtendedPropertiesNotInSource conflicts with the selected DoNotDropObjectType ExtendedProperties”

As the title says, I get this error when trying to Publish using a publish profile XML: DropExtendedPropertiesNotInSource conflicts with the selected DoNotDropObjectType ExtendedProperties I have ...
1
vote
2answers
806 views

How does “OtherServer” in SSDT database references work?

I want to create a SSDT database project that is supposed to be deployed on a Sql Server that has several linked servers to other servers. The database ("MyBusinessDB") on those remote servers is in ...
14
votes
1answer
5k views

SQL Server - Adding non-nullable column to existing table - SSDT Publishing

Due to business logic, we need a new column in a table that is critical to ensure is always populated. Therefore it should be added to the table as NOT NULL. Unlike previous questions that explain how ...
9
votes
1answer
575 views

Is there a way to easily validate that a SQL Script is compatible with a specific SQL Server version?

I am currently working on a project that needs to operate in different SQL environments. Most of my developers have SQL Server 2017. The application runs in SQL Azure, and the client has recently ...
25
votes
2answers
16k views

Why is :r SQLCMD command marked as wrong in Post Deployment Script?

I have worked a couple of times with post deployment scripts and always, intuitively used the build action "PostDeploy", because that is what it is. Now for the first time I try to follow the built-in ...
11
votes
3answers
7k views

Excluding a specific table from a SSDT deploy

I have an existing database with everything in schema dbo. I have an SSDT project with objects I am adding to it with schema foo I have a table that looks like this in the project: CREATE table foo....
2
votes
1answer
875 views

DACPAC Deployment Rebuilding All Indexes

I'm in process of deploying a DACPAC provided by our ISV. The DACPAC is rebuilding every index in the database. We're testing in a Lab now, however, this will create a significant impact to our ...
2
votes
1answer
423 views

How to remove Alter, Drop, Create SQL from deployment script created in VS 2015 using SSDT 14.06

I need to remove the below auto-generated deployment script for my SQL project. I am using VS 2015 with SSDT 14.06. Would this be something that can be set in the Advanced Deployment settings under ...
1
vote
1answer
54 views

SSDT Publish failing with an error without even running any statements

My publish attempts are failing with this error Msg 205, Level 16, State 1, Line 7572 All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in ...
3
votes
0answers
282 views

SSDT Schema compare to compare only specific objects

Is it possible to use schema compare in SSDT to compare only specific objects? Not object types, specific objects like 3 tables and 2 stored procedures instead of all tables and all stored procedures?
3
votes
1answer
472 views

SqlPackage.exe unnecessarily drops and recreates indexed view with schemabinding

Currently SqlPackage.exe used in conjunction with BitBucket for the deployment of the database schema changes. Recently a pretty large indexed view has been created based on 3 source tables, which ...
1
vote
1answer
568 views

Generate DACPAC diff using predefined config

I would like to generate a diff file based on the database vs DACPAC comparison. Currently what I am doing is extracting DACPAC from the target database and trying to create a diff file based on that (...
0
votes
1answer
24 views

Does MS provide a way to query a SSDT project

Is there a way to query a SSDT project to get a list of tables or foreign keys? Similar to what you can do with the actual database?
1
vote
1answer
80 views

Ms VS2017 with SSDT has the 'User with Password' template but thinks it's wrong

In my database project when I choose the 'User with Password' template in the Add New Item dialog, code is generated, kind of CREATE USER [u2] WITH PASSWORD = 'jbniq_ushfbwc=l5nAxu8aapmsFT7_&...
3
votes
1answer
938 views

Publishing database changes with SSDT that include adding columns to existing table to the target database through Project

Publishing database changes with SSDT that include adding columns to the existing table in the target database(which was previously created through SSDT).Instead of creating a new SSDT database. ...
8
votes
1answer
818 views

Storing CREATE EXTERNAL DATA SOURCE in a SSDT project without exposing the DATABASE SCOPED CREDENTIAL or MASTER KEY secret;

I have a SSDT project that deploys to Azure SQL DB. Recently I added an external table. This required an external data source as follows: CREATE EXTERNAL DATA SOURCE [data_warehouse] WITH ( ...
14
votes
3answers
14k views

sqlpackage.exe ignoring BlockOnPossibleDataLoss?

I have a dacpac that has set the BlockOnPossibleDataLoss set to false, however the deployment is blocked when I run it with sqlpackage.exe, telling me "The column [a] is being dropped, data loss could ...
3
votes
1answer
643 views

What does @RC mean in SSDT SQL Server Unit Testing?

In Sql Server Unit Testing, SSDT, what does @RC stand for? Does it mean Row Count, or Row Column? Team wants to understand, we have been using it for long time, good tool which works, just curious.
9
votes
1answer
1k views

Option to uncheck all or invert selection in SSDT?

In SQL Server Data Tools (SSDT) after compared the schema, I want to update few changes of mine only (as red-circled in the screenshot). But there are many other changes are listed in the window, I ...
1
vote
1answer
564 views

Visual Studio SSDT Ignore Query Store Options in Publish Profile

Is there any way in Visual Studio SSDT Publish Profile, to Totally Ignore Query Store Options Completely? It keeps asking us to Rerun publish code below. I go to Database advanced settings, and turn ...
0
votes
1answer
3k views

Install SSDT for VS 2017 - Missing Integration Services

I have downloaded and installed SSDT from Microsoft docs. The install was successful and I now have SSDT for VS 2017 installed - version 15.8.9 (as per screenshot) However, I cannot create an SSIS ...