Building an SSIS 2008 solution using TFS 2008 - ssis

I am trying to build an SSIS 2008 solution using TFS 2008. I created a 'TFSBuild.proj' file using the build definition wizard. My build appears to work, but fails at the final step with the error...
(0,0): warning MSB4126: The specified solution configuration "Release|Any CPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
I've tried...
Leaving the 'FlavorToBuild' & 'PlatformToBuild' values blank in the 'TFSBuild.proj'
Amend the 'FlavorToBuild' & 'PlatformToBuild' values in the 'TFSBuild.proj' file to various other strings
Any ideas?

Apparently you can't build SSIS project files, out of the box, because they are not in MSBuild format. Great!! - Sarcasm overload.

Related

Missing some components in SSIS toolbox in Visual Studio 2017

I am using Visual Studio Community 2017 for developing SSIS packages and I use SQL Server 2016.
Some of components are not in SSIS Toolbox.
This is that I have now:
and this is my colleges have(They don't have the same version of Visual Studio that I have):
For example: I need to add a XML Source component to one of my Data Flow but there is not anymore in Other Sources sector in SSIS Toolbox.
I tried to add the missing components (Tools -> Choose Toolbox Items ->) but I don't have the tab for SSIS component.
How can I add those components (For example XML Source) to my Toolbox?
I have found the cause of this problem.
By changing the TargetServerVersion to SQL Server 2016 in Project properties. My project has been converted and now i have this component in my ToolBox.
Now, I have XML Source component in my SSIS ToolBox.
I can confirm the answer given by Ardalan Shahgoli resolved my missing component. I have captured a screenshot demonstrating the problem and the resolution. In my example, I was missing a component 'Excel Source Plus' from the 'CozyRoc' addin
PROBLEM:
Missing some components. The data flow has the component on the canvas, but there are of error messages in the Error List window, and you are unable to edit the component. For example, you might see an error message such as this:
Severity Code Description Project File Line Suppression State
Error Validation error. Alt Data Flow_Merge Data Task: Alt Data
Flow_Merge Data Task: The component metadata for "Lookup Plus, clsid
{8DC69D45-2AD5-40C6-AAEC-25722F92D6FC}" could not be upgraded to the
newer version of the component. The PerformUpgrade method
failed. SSASUsageStats.dtsx 0
RESOLUTION:
Changing the TargetServerVersion will effect which components are available in the 'SSIS Toolbox'. As seen in the screenshot, there are tons more components after changing the project property TargetServerVersion. For example, 'Excel Source Plus' is found. The Data Flow canvas now has an image by the icon. And the component now has an 'EDIT' option.

SSIS - Remove configuration on project deployment model

I have converted my project to Project deployment model. When I was converting there was a checkbox which said “Remove configurations from all packages after conversion" and I did not check it when I shouldn't have. Now all the configurations are part of my local project. Is there a way I could remove all the configurations after the conversion is complete?
Thanks
You can try this and let me know if it works:
Double click on package to open and see its properties in right
side.
Click three dots in configuration as shown in image.
Now
enable the package configuration. It should show your config which
you can simply delete.
I know this is old, but I came across the same issue and hoping this will help someone. I am using Visual Studio 2017 v15.9.11 and SSDT v15.9.0 on Windows 10 Enterprise. This was done for a package destined for SQL 2016, but I believe it would work on any package for SQL 2012+.
You can remove/disable package configurations after conversion by doing the following:
Find your dtsx file in Solution Explorer
Press F7 (or right-click the package > View Code)
Search for the <DTS:Configurations> element and remove the entire section
Save the file and re-open in designer view. Right-click the package and "Package Configurations..." should no longer be in the context menu.
Example from one of my packages - this is what was deleted:
<DTS:Configurations>
<DTS:Configuration
DTS:ConfigurationString=""CONFIG";"[dbo].[SSIS_CONFIG]";"YourConfigName1";"
DTS:ConfigurationType="7"
DTS:CreationName=""
DTS:DTSID="{C2C3EDFC-392A-401F-AC75-4D4C82A9CD68}"
DTS:ObjectName="Configuration 1" />
<DTS:Configuration
DTS:ConfigurationString=""CONFIG";"[dbo].[SSIS_CONFIG]";"YourConfigName2";"
DTS:ConfigurationType="7"
DTS:CreationName=""
DTS:DTSID="{A7F0C4DD-4891-44E1-817A-AB8431DA6509}"
DTS:ObjectName="Configuration 2" />
</DTS:Configurations>

Using external assembly's method's results as a dataset

Using SQL2008R2:
I am trying to create a dataset that is simply the result of an external assembly's return method(s), but everything I can find regarding using custom/external assemblies just has a textbox's value set to the external assembly's method's result via an expression.
I simply want Report Server to do the data processing in the external assembly and bind that result to a very simple report.
I found some references to something about MDX but they seem to be a few years outdated and needed to know if this is possible.
Assuming you already have a .dll - Place your dll in the report designer folder (where your RDL is) and the report server folder, somewhere around here:
Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin
Now add a reference to your dll from your report.
With your report open go to Report, Report Properties, References, Add reference, browse to your dll and add it.
Now in a text box properties Value call a method of your dll. It should look something like this:
=MyDllName.ClassName.MyMethodOrSubOrWhatever
This is a great article that can walk you through this:
Assuming you already have a .dll - Place your dll in the report designer folder (where your RDL is) and the report server folder, somewhere around here:
Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\bin
Now add a reference to your dll from your report.
With your report open go to Report, Report Properties, References, Add reference, browse to your dll and add it.
Now in a text box properties Value call a method of your dll. It should look something like this:
=MyDllName.ClassName.MyMethodOrSubOrWhatever
This is a great article that can walk you through this: http://support.microsoft.com/kb/920769
P.S. Another option, if you don't want the web server doing the heavy lifting, is to use stored procedures. However, in our experience with very large database systems, it is much easier to scale up the web servers than it is to scale up the database servers so we do much of the heavy lifting on the web servers.
If you need a data set that is generated by custom .NET code, you can either set up a web service (here's a good tutorial), or you can set up a custom "data processing extension".
A data processing extension will allow you to choose a new data source in the SSRS report designer, and this data source will run custom .NET code. The full description is on MSDN, but here are the basic steps:
Create a new class library project
Implement all of the required extensions (and any desired optional ones)
Copy the DLL to the SSRS bin folder
Edit the SSRS config file to register your extension (by specifying the fully qualified name of your IDbConnection class)
You can find working examples from both CodePlex and Microsoft.

Unbale to preview the Report in Visual studio SSRS

I have created the custom data source Provider. I have edited the config file RSReportDesigner.config and RSPreviewPolicy.config. I am able to see my custom data source provider in data source list while creating the data source in SSRS (Visual Studio). While creating dataset, iam able to execute query and get data.
But, when i try to preview the report it display following error: An attempt has been made to use Data Extension 'CUSTOM_DATASOURCE' that is either not registered for this report server or is not supported in this edition of Reporting Services
See: https://support.microsoft.com/en-us/kb/2750044
and as the article instructs, be sure to also add the same xml snippet provided as the solution in the article, to the PreviewProcessingService.exe.config file that is located in %Program Files%\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies folder.
This file does not have existing entries like the devenv.exe.config, but you will see an <assemblyBinding> </assemblyBinding>section and you can insert the xml from the article between these tags.
You may have to relaunch SQL Data Tools for the changes to take affect.
Are you using Sql Server Express? Express doesn't support the full feature set of Reporting Services. There is a list of the unsupported features on MSDN, one of which is:
The Reporting Services API extensible platform for delivery, data processing, rendering, and security is not supported

MySQL T4 Templates Error: Metadata file 'MySql.Data' could not be found

D:\Web\CityV2\App_Code\ActiveRecord.tt(0,0) : error CS0006: Compiling transformation: Metadata file 'MySql.Data' could not be found
Let me start by saying I'm using VWD 2008 Express.
These are the steps I've taken so far:
Created an entirely new project
Added references for Subsonic.Core.dll and MySql.Data.dll
Copied Active Record templates to project
Changed all <## include file="SQLServer.ttinclude" #> to <## include file="MySQL.ttinclude" #>
Copied the MySQL.ttinclude and Settings.ttinclude from the TemplateProviders folder
Updated Settings.ttinclude with my connectionstring and database information
Updated the Settings.ttinclude and created the external tool mapping as per ranomore's instructions
Attempted to build the code from the templates and received the error
I then realized that I didn't have MySql Connector "installed" on my dev box (even though I added a reference to the bin). So I proceeded to MySQL.com and downloaded the latest 6.0.4 connector msi and installed it (GAC). The error no longer appears, but neither does anything else: no new classes, no new errors, nothing [and yes, I refreshed the project after running the command ;-)].
Two things:
Am I missing a step somewhere?
Is there a way build the templates without needing MySQL installed to the GAC?
Unfortunately SubSonic 3 doesn't support VWD 2008 Express (or more specifically VWD doesn't support t4). There is a sort of workaround that ranomore came up with but it will require some work by you. See the following question for more details:
SubSonic ASP.NET MVC sample in Visual Web Developer Express
EDIT: I should have read your question properly you obviously already have the link above. Maybe worth your while downloading the trial of VS professional and seeing if you have more luck with that to see if it's worth outlaying the cash to buy it.
On a side note if you're looking to get an msdn subscription for free you should have a look into registering for the bizspark program