Welcome to blogs.conchango.com Sign in | Join | Help

Welcome to blogs.conchango.com

SSIS Junkie

Katmai\SSIS: C# comes to the script task/component

"Why the <insert your favourite expletive here> doesn't SSIS support C# for the script task and script component?"

 

I've heard the above complaint, in various different ways, many many times over the past 18 months since SQL Server 2005 was released. Its a valid complaint to which there is a valid answer (which I'm not going to go into right now). Regardless, with the arrival of katmai the complaint won't be heard any more. The script task and the script component now feature support for C#.

 

 

This has been made possible by replacing Visual Studio for Applications (VSA) (which is what the script task and script component used to use) with Visual Studio Tools for Applications (VSTA). VSTA is a much richer environment for extending applications and it has that all important support for C#.

 

I saw a neat demo a few months ago of what is capable using VSTA within SSIS. You can now add web references to your script tasks and components which means that it is now very easy to call web services from within the pipeline. It was possible in SQL Server 2005 but you had to hand crank the code yourself or use wsdl.exe to generate it. Now, its as simple as adding a reference. I hope to have a demo to show you shortly. UPDATE 2008-03-04, A demo video of this is now available at Consuming web services in SSIS 2008.

UPDATE: Another reason why the use of VSTA is such a good thing. You no longer have to go through this rigmarole in order to use other assemblies. GACing them will be sufficient.

 

-Jamie

 

P.S. I know Simon has mentioned this already but I already had this blog entry drafted so I'm posting it anyway :)

 

 

Further reading:

An overview of VSTA's capabilities : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=908415&SiteID=1

Select Variables dialog in katmai : http://blogs.msdn.com/mattm/archive/2007/06/06/select-variables-dialog.aspx

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

CoqBlog said:

Bien que je n'en sois pas un grand consommateur, je me suis quand même un peu intéressé au sujet, histoire

June 10, 2007 10:24
 

Tod McKenna said:

I knew this was coming, and it's about time. I'm a C# fan, but have been 'forced' into learning 'that other language' in order to write quick SSIS scripts. Anyway, this is a welcome addition.

June 11, 2007 18:38
 

SQL Server, BI and .NET said:

Leggete qui e godete per diversi motivi: Finalmente SSIS userà VSTA anzichè VSA per lo scripting e quindi

June 13, 2007 21:59
 

Jack V said:

My  understanding is that VSA , will only work with VB.Net , do you know of any sites etc that show how to do c# from scratch within the SSIS?

February 14, 2008 15:23
 

jamie.thomson said:

Jack,

You can write custom components/tasks/connection managers/log providers/loop enumerators in whatever .Net language you like but for the Script Task/Component its VB.Net only I'm afraid. Well, in SSIS2005 it is anyway.

-Jamie

February 15, 2008 01:50
 

Technical Musings said:

SQL Server 2008 will be coming out sometime this summer (in theory). At last week's TechFuse event in Minneapolis, and in blogs I sometimes read, I've started to pick up on a number of useful features and improvements that should...

March 4, 2008 16:16
 

MG said:

Has anyone run into the issue of adding references to a script task and not having them "stick". I have been trying to add SMO references but after saving the script task and closing it, they disappear.

May 19, 2008 20:25

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

Powered by Community Server (Personal Edition), by Telligent Systems