sql-server-data-tools

DACPAC won't deploy because 'can't connect to server'?

点点圈 提交于 2019-11-29 10:23:00
I'm trying to deploy a DACPAC to LocalDB 2012 but it's just not having it: Stack trace is as follows: ================================== Could not deploy package. (Microsoft.SqlServer.Dac) ------------------------------ Program Location: at Microsoft.SqlServer.Dac.DeployOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context) at Microsoft.SqlServer.Dac.OperationExtension.Execute(IOperation operation, Action`2 reportStatus, CancellationToken cancellationToken) at Microsoft.SqlServer.Dac.DacServices.InternalDeploy(IPackageSource packageSource, Boolean isDacpac, String

ServerConnection.ExecuteNonQuery in SQLCMD Mode

我是研究僧i 提交于 2019-11-29 07:55:36
问题 I am using the Microsoft Data-Tier Application framework to create a deployment script based on a DacPackage object. I am attempting to use the Microsoft.SqlServer.Management.Smo.Server class to execute this script... SqlConnection deployConnection = new SqlConnection(connBuilder.ToString()); deployConnection.Open(); Server server = new Server(new ServerConnection(deployConnection)); server.ConnectionContext.ExecuteNonQuery(deployScript); However, this errors out with... Unhandled Exception:

VS 2012 Database Project “unresolved reference to object” Error

喜欢而已 提交于 2019-11-29 02:49:50
I created SQL Server Database Project in VS 2012 & imported our database. When I build the project, I get a lot of "unresolved reference to object" Errors. These errors are only for a few views I have in my database. The syntax for these views are correct & I am not using temp tables. What should I check to solve this issue? UPDATE: This is one example: CREATE view [Factory].[NonStartedOrders] as SELECT "Customers"."CustomerName", "Customers"."CustomerAName", "Customers"."MarketID", "Orders"."OrderID", "Orders"."ApproveDate", "FactoryOrders"."FactoryID", "FactoryOrders"."EstEndDate",

Prevent dropping of users when publishing a DACPAC using SqlPackage.exe

早过忘川 提交于 2019-11-28 23:37:43
Is there any way of preventing users being dropped when publishing a DACPAC using SqlPackage.exe, other than changing the setting below, which prevents all objects from being dropped if they're not in the DACPAC. <DropObjectsNotInSource>True</DropObjectsNotInSource> We deploy to a number of environments, each with different users. Current workarounds are to either: Script the users for each environment to recreate them after deploying Use /Action:Script and manually change the deployment script. Neither of these are ideal though... In the February 2015 relase there is (finally) support for

Visual Studio 2017 does not have Business Intelligence Integration Services/Projects

白昼怎懂夜的黑 提交于 2019-11-28 21:09:57
I do not see an option to create an SSIS project using Visual Studio 2017. VS2017 supports ssis or ssrs projects if you install SSDT for VS2017 here . Click on the newly downloaded file and check SSIS or SSRS components that you required, as show in diagram :- Once you have installed this, try opening ssis / ssrs project. I managed to open ssis developed on vs2010. You should see these component installed. (reboot if you don't see them). Try open your project again. If you get 'incompatible project' - right click on your project, select "reload project" (not reopen the solution) Aureliano

Visual Studio 2017 SSDT add reference to script

佐手、 提交于 2019-11-28 12:19:21
问题 I am new using SSIS and want to create a script to connect to a Mongo DB, for this purpose I am trying to add a reference to a MongoDB driver as explained here Unfortunately I don't see a way to do so, in the solution explorer, there is no Reference node Could you please point how to add a reference to my script in this project? 回答1: After trying different solutions I tried the following: Uninstall SSDT and Reboot Downloaded this version 15.8.2 from here Install SSDT selecting my version of

Can SQL Server Data Tools work with SQL Server 2008 SSIS?

不想你离开。 提交于 2019-11-28 11:59:07
Can I use the new SQL Server Data Tools that come with SQL Server 2012 to create SSIS packages for SQL Server 2008? I work with both SQL Server 2008 and SQL Server 2012 and I am wondering if I can use SSDT to create and maintain SSIS on both. Sentinel No. See problem with deploying ssis 2010 package It seems that the backward compatibility offered by SSDT does not apply to SSIS. Everyone wants a smooth integration process that will allow for proficient system performance. In theory, the SQL Data tools package should work well with server SSIS (SQL Server Integration Services) 2008. Get the

To run a SSIS package outside of SQL Server Data Tools you must install Move File to Archive of Integration Services or higher

末鹿安然 提交于 2019-11-28 11:37:30
I am testing SSIS package that I upgraded from VS2005 project to VS2013 (package deployment model) project. This is very simple package which just processes files one by one from specific location and updates database based on those files and once done it moves file to archive or non-parsing directory based on outcome. And I am getting odd error and I cant find solution for that. Issue is my package runs fine and it does exactly what it suppose to do (extracting data from file and inserting into table). But part of this operation is to move file to archive ( file system task ). And I am

Does wrapping nullable columns in ISNULL cause table scans?

冷暖自知 提交于 2019-11-28 10:00:19
Code analysis rule SR0007 for Visual Studio 2010 database projects states that: You should explicitly indicate how to handle NULL values in comparison expressions by wrapping each column that can contain a NULL value in an ISNULL function. However code analysis rule SR0006 is violated when: As part of a comparison, an expression contains a column reference ... Your code could cause a table scan if it compares an expression that contains a column reference. Does this also apply to ISNULL, or does ISNULL never result in a table scan? Yes it causes table scans. (though seems to get optimised out

Visual Studio 2015 SQL Server Data Tools missing “Add Table” option

萝らか妹 提交于 2019-11-28 04:22:39
问题 I have added a localdb to my project and trying to add tables to it. But I could not see 'Add Table' item on the menu, there are only 'Refresh' and 'Properties' items. According to the Microsoft SSDT is coming preloaded with VS2015, but there is no option to add a new table. Am I missing something? 回答1: I have added a localdb to my project and trying to add tables to it. But I could not see 'Add Table' item on the menu, there are only 'Refresh' and 'Properties' items. To resolve the issue :