sql-server-data-tools

VS 2012 SSDT build CLR with IEnumerable failing on generated syntax

*爱你&永不变心* 提交于 2019-12-11 01:05:41
问题 I'm attempting to reuse some code found here. After adding a new using the c# (shown below) seems to be fine. When I go to publish the database, however, the code generator does not seem to recognize the IEnumerable type and ends up producing an error. The actual error (Incorrect Syntax near AS) from the generated code below is obvious, so my question is how can I get SSDT to generate the correct code and avoid the cause of the error? (I assume that I can add the CLR manually, however, I

Running an SSIS package developed in SQL Server Data Tools for Visual Studio 2013 from Visual Studio 2015

不羁的心 提交于 2019-12-11 00:34:02
问题 The SSIS package executes fine from VS 2013 but when I try to call the .dtsx from VS 2015 I get this error: "To run a SSIS package outside of SQL server data tools you must install Script Task of Integration Services or higher." Here is my code in VS 2015: My using statements... using System.Windows.Forms; using Microsoft.SqlServer.Dts.Runtime; My Code... private void button1_Click(object sender, EventArgs e) { private string pkSSIS = @"C:\Work\Pathname_Ect"; string error = ""; label1.Text =

How to update an SSDT project from the command line?

房东的猫 提交于 2019-12-10 18:51:00
问题 I hope to be able to use SSDT (SQL Server Data Tools) to put our database schema under version control. Importing a database into an SSDT project in Visual Studio creates a nice textual representation of the database schema, suitable for versioning. Now, the question is, when changes are made to the database schema - how can we programmatically, or from the command line, update (or re-import) the SSDT project? 回答1: You can use the built-in schema compare tool to do this, but it seems that you

Creating SSIS Package in SSDT. Conditional Split in Data Flow Task Causes Package To Break

假装没事ソ 提交于 2019-12-10 18:25:45
问题 I'm trying to export a table from SQL SERVER 2012 to An Excel 2007 Workbook. The simple task from OLE DB Source -> Excel Destination works perfectly. I have a field called [POD Assignment], I want to export to one sheet in the workbook if [POD Assignment] is equal to "UNKNOWN", and to another sheet if it's not. Link OLE DB Source to Conditional Split. I have an output named "Unknowns" where the condition is "[POD Assignment] == "UNKNOWN"". I link the the output "Unknowns" to an Excel

SQL Server data tools in visual studio 2015

情到浓时终转凉″ 提交于 2019-12-10 18:07:41
问题 I'm trying to create an SSIS package to import xml data file into sql server table. I have sql server 2008 R2 and visual studio professional 2015 on Windows 10 machine. In VS Help About I can see SQL Server Data Tool 14.0.50730.0. I did an update via control panel just to be sure and the help list stayed the same. From loads of searching I'm guided to use New Project / Templates / Other Languages / Sql data tools - but this does not appear. Nearest I get is SQL Server/Sql Database project.

VS 2013 Database Project: Post-Deployment scripts to run based off of build configuration

扶醉桌前 提交于 2019-12-10 17:22:36
问题 Is there a method/ mechanism available to run a different set of post-deployment scripts in the SSDT-based database project in Visual Studio 2012/ 2013, based off of the build configuration? I would like to pre-populate my data for testing/ continuous integration by deploying with a "Testing" configuration, but naturally don't want to do this for other environments. I can't seem to find a way to conditionally link a post-deployment script to a build configuration, though, and that seems

Using SSDT as source for T4 templates

二次信任 提交于 2019-12-10 16:24:38
问题 I have a SQL Server Data Tools (SSDT) project that has a number of stored procedures for which I would like to generate the C# code to call them using T4. Are there any existing examples for doing this? So far, I can create a function per proc, but I'd really like to be able to tap into the meta data SSDT creates so I can get the parameters, data types, and return values from it rather than doing string parsing. 回答1: COOL WITH A CAPITAL C! (but don't tell anyone who uses an ORM!) To get the

database Project not running Post Deployment scripts

巧了我就是萌 提交于 2019-12-10 15:59:43
问题 We have a solution with three database projects. All three produced dacpacs are deployed sequentially but for some reason, one of these dacpacs does not run the post-deployment script. We're using sqlpackage to create a diffscript, and the diffscript does correctly include the post-deployment statements.. here's a snippet IF EXISTS (SELECT * FROM #tmpErrors) ROLLBACK TRANSACTION GO IF @@TRANCOUNT>0 BEGIN PRINT N'The transacted portion of the database update succeeded.' COMMIT TRANSACTION END

Unable to pass a variable value to a stored procedure in ssis

☆樱花仙子☆ 提交于 2019-12-10 14:50:02
问题 When executing an SSIS package, the following error appears: [OLE DB Source [83]] Error: The SQL command requires a parameter named "@Sales_person", which is not found in the parameter mapping. [SSIS.Pipeline] Error: OLE DB Source failed the pre-execute phase and returned error code 0xC0207014. Below is the screenshot of my OLE DB Source editor I do see Param direction tab in Set Query parameters, how is that used? In my case will I be using Input or Output or InputOutput 回答1: After searching

Missing Reporting Server templates in Visual Studio 2013 + Business Intelligence SSDT

非 Y 不嫁゛ 提交于 2019-12-10 14:49:22
问题 The other day I have installed Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2013 (SSDT: Replacement for BIDS) and started using reporting features in VS2013 . Successfully created a project using Report Server Project Wizard template. However, later on I needed SQL Server 2014, then I downloaded and installed the developer edition. (in case if this might've caused the problem) Now the Report Server Project templates are missing from VS2013 and I can't simply bring