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
5 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
22 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
7 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 ...
1
vote
1answer
40 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
1answer
91 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 ...
1
vote
1answer
74 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
62 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, ...
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 ...
1
vote
0answers
20 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 ...
6
votes
1answer
210 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 ...
1
vote
1answer
168 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
167 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
131 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 ...
4
votes
0answers
187 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 ...
9
votes
1answer
499 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 ...
2
votes
2answers
289 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 ...
2
votes
1answer
374 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 ...
0
votes
1answer
52 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 ...
2
votes
1answer
220 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 ...
0
votes
0answers
84 views

Cannot create or use an SSIS package template in SSDT 2017

ENV: Using VS 2017 Professional/SSDT 2017 on Win10 pro. Our company does NOT allow developers to have Admin Rights on their laptops so the ONLY way to create and use a template is to save it in the ...
0
votes
0answers
36 views

Data Loss issue while migrating data from Source(Oracle) to Data Warehouse Staging Database(SQL Server)

Project Overview Loading data from Oracle Database to Datawarehouse Staging Database(SQL Server). Using ETL process we are loading data from Oracle to SQL Server. Staging Database in SQL server is an ...
1
vote
1answer
46 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
169 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?
2
votes
1answer
252 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 ...
0
votes
1answer
20 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
74 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
647 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. ...
7
votes
1answer
562 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 ( ...
3
votes
1answer
393 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.
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 ...
1
vote
1answer
384 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 ...
3
votes
1answer
174 views

SQL Visual Studio Find and Replace in Publish Profile

We have source control in Visual Studio Database Projects (SSDT). To make cross database references, we utilize something like this below in Project References. We need Project references, since ...
5
votes
1answer
418 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 (...
2
votes
1answer
327 views

Make SQL Server SSDT Database Project Reference Different in Publish Profile

In a SSDT Database project, I know how to publish the Self-Database to different locations. I can change eg, the Customer database name in the Publish profile. Example In: Dev Environment: will ...
1
vote
0answers
338 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
824 views

How to read data from multiple Excel files with SQL Server Integration Services(New Senario)

Hope you're doing well. I have a scenario here. As you can see I have a table with two main columns : What I need is to read each "FilePath" which is "Active" right now and then read the Excel files ...
0
votes
1answer
953 views

How do I compare Schemas for Multiple Databases to a True Copy?

We have a database for each customer, over 700 databases. All the schemas are supposed to be exact same. We have Source Control database, and want to schema compare to the 700. Sometimes schema in ...
0
votes
1answer
550 views

SSDT - Deprecated table trigger preventing publish

There is a table trigger that was removed in the past that is blocking SSDT publish preview: This deployment may encounter errors during execution because changes to [table] are blocked by [trigger]'...
6
votes
3answers
3k 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
1answer
161 views

How to find the erroneous code failing the SSDT publish?

Every time something fails the publish, assuming it passes the preview generation, the error line and executed script sample are completely useless at helping me trace the source of the error, since ...
0
votes
1answer
319 views

SQL SSDT Database Projects: Source Control Lookup Data

Does SQL Server SSDT Visual Studio 2017 Database Projects support Source control data for lookup tables, or do we still have to utilize messy Post-Deployment Merge Scripts for multiple tables? ...
1
vote
2answers
8k views

How to rollback a SQL Server transaction and use output param?

I am trying to set an output param in a stored procedure, but I think that when I rollback the transaction I think I'm also rolling back the assignment to @out. Is that correct? If so, how can I ...
11
votes
1answer
4k 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 ...
1
vote
1answer
93 views

SSMS 10.5 alongside 17.7

To set the scene, I maintain 4 local SQL Server 2008 R2 instances. At some point in the near future, 3 of these will be upgraded to SQL Server 2017 and migrated to azure. I am currently using SSMS ...
2
votes
0answers
261 views

SQL Server - How to track down error thrown in SSDT publish preview?

Without flailing through a file search, how does one track down the code that caused an error during SSDT publish preview? Normally any errors come later such that the statement can be traced in the ...
1
vote
2answers
152 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 ...
3
votes
1answer
959 views

Dacpac deployment via sqlpackage, “DropObjectsNotInSource=True” is trying to drop .mdf & .ldf

Powershell deployment script: Executing: C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe /Action:Publish /SourceFile:********.dacpac /Profile:Release.Publish.xml /...
1
vote
1answer
87 views

SSDT: Requires Visual Studio? Requires connection to SQL Server? (SQL Server 2016)

I need to make some SSIS workflow packages. I see I can do this in SSDT. I have not used SSDT before. It appears that SSDT installs into Visual Studio. OK, I can do that. (I have VS 2015 installed.) ...
1
vote
1answer
455 views

SSIS convert flat file cell to HH:MM:SS

I see similar questions, but most have to do with datetime or fairly different requirements. I have a CSV report that has a time column stored as HH:MM[:SS] (if over 1 day, it adds :00 for seconds... ...
2
votes
1answer
21 views

How is SSDT Data Flow batching handled?

How does SSDT handle batching of Data Flow tasks? I am parsing a CSV that is about 1GB into SQL Server using SSDT. In the Data Flow there is a Flat File source, that goes to an OLE DB destination (a ...