sql-server-data-tools

How do I fix incompatible SQL Server version found?

六月ゝ 毕业季﹏ 提交于 2019-12-12 08:38:51
问题 I'm using VS 13 just installed SQL Server 2014 Express, created a new database and when I go to add a new table (inside VS) I get the following error: incompatible sql server version found How do I fix this? Should I find the version required by the VS (if so, how?) and I downgrade to that required version or can I workaround it with SQL Server 2014 Express? 回答1: Check the "Target platform:" drop-down in the "Project Settings" tab of Project Properties. If "SQL Server 2014" is not selected,

How to use SQL Server Database Project

淺唱寂寞╮ 提交于 2019-12-12 07:47:06
问题 I am running SQL Server 2012 and VS 2010 with SSDT (SQL Server Data Tools) installed. My dev DB uses stored procs, functions, CLR objects, etc. It has a snapshot of prod data of about 500GB. I created SQL Server Database Project and then imported the database. This created all tables, views, procs and functions files under schema names. Great stuff -- now I can do a version control just like in other VS projects, create deployments, etc. So far, so good. But, I am confused as to what my

Import database with SSDT programmatically

偶尔善良 提交于 2019-12-12 03:26:19
问题 I have a situation where I need to copy everything out of a database (except data) and deploy it to a new database. I am currently doing this by importing from the existing database into SSDT and then publish the project to the new database. I want to know if there is a way I can do this programmatically. Ideally I would like to have a process in place where I can give the process the name of the database to copy from, the name of the database to copy to, and then the process would just

How to get SelectStatement from Procedure?

眉间皱痕 提交于 2019-12-12 01:25:12
问题 This is a follow up question from here. I'm trying to use DACExtensions to retrieve the SelectStatement objects from a Procedure so that I can generate wrapper functions from my SSDT project using a T4 template. The problem is that the Nodes property of my Visitor object doesn't have any nodes in it. What am I missing? Here's my Visitor: public class SelectVisitor : TSqlFragmentVisitor { public SelectVisitor() { this.Nodes = new List<SelectStatement>(); } public List<SelectStatement> Nodes {

Publishing DacPacs in Visual Studio 2013

蹲街弑〆低调 提交于 2019-12-12 01:23:38
问题 I have an SSDT database project in Visual Studio 2013. This is used as the "answer sheet" when publishing database updates to a database in the other environments. I recently came across Jamie Thompson's blog article on DacPacs, where he writes a great summary on what DacPacs are, and how to use them. Now, say I have the following scenario: The SSDT project in VS2013, which is version 1.0.33 A database in my Dev environment, which is version 1.0.32 A database in my S-test environment, whic is

How do I reach out to a DACPAC project references through DAC api?

夙愿已清 提交于 2019-12-11 22:59:53
问题 I'm trying to use GetObject method to obtain an instance of a TSqlObject representing a table from a referenced project: var id = new ObjectIdentifier(new[] {"ExternalDb"}, new[] {"Schema", "TableName"}); var table = Model.GetObject(ModelSchema.Table, id, DacQueryScopes.All); Unfortunately that doesn't seem to work. I've read inside the doc that DacQueryScopes.All will get all objects, EXCEPT those in a non-system db. So I guess this is why this fails, but then how am I supposed to reach up

Error deploying SSIS projects into Azure SSIS DB using PowerShell

醉酒当歌 提交于 2019-12-11 15:14:22
问题 I am trying to deploy SSIS projects to Azure SSIS DB using powershell. THis script is running on Bamboo server. I am getting below mentioned error. 30-Jul-2019 09:03:18 Exception calling "DeployProject" with "2" argument(s): "Could not load file or assembly 30-Jul-2019 09:03:18 'Microsoft.SqlServer.IntegrationServices.Common.ObjectModel, Version=14.0.0.0, Culture=neutral, 30-Jul-2019 09:03:18 PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file

Error generating publish script: the select permission was denied on the object __refactorlog?

做~自己de王妃 提交于 2019-12-11 13:34:30
问题 In my SSDT Project, why could I be getting this error? "the select permission was denied on the object __refactorlog?" There is a refactorlog item in the Project. I select to generate a publish script from inside VS. Edit: the target is a production server, so I don't have permissions to create tables or select data there, I just have to create the deployment script, and there is no table __refactorlog anyway.. 回答1: You need greater permissions than you currently have on that server in order

SSIS Script Task - No Interface Supported

限于喜欢 提交于 2019-12-11 13:07:24
问题 Purpose : I have an SSIS Solution with various packages, one set of these packages is currently created with a package per table due to them having different structures. The aim is to create a template package (done), update variables/table names (done), reinitialise and re-map columns, execute package for each table. Problem : So, as you can tell, I'm up to the point that i need to reinitialise but I am unable to get to the data flow task and keep getting this error: No such interface

ispac file deployment errors out when build/deploy from visual studio works fine

瘦欲@ 提交于 2019-12-11 12:04:59
问题 We have two packages as part of one job. We copied these same packages from one SQL Server Integration Services Catalog SSISDB folder to another SQL Server in the same Integration Services Catalog SSISDB folder (same namespace). When running this job on the new server with the packages copied, the job runs but fails and also does not produce an error message (we have any error message logged). When building and deploying from Visual Studio these same two packages to the same SSISDB folder and