﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Integration Services / Data Warehousing  / script task / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 20:38:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: script task</title><link>http://www.sqlservercentral.com/Forums/Topic1421532-364-1.aspx</link><description>I use script tasks in the OnError events of executables to store the error messages for sending an alert email at the end of the job (I also use a script task to send the email - it's just easier for me as a developer to use the .NET mail classes.</description><pubDate>Wed, 20 Feb 2013 17:00:56 GMT</pubDate><dc:creator>mister.magoo</dc:creator></item><item><title>RE: script task</title><link>http://www.sqlservercentral.com/Forums/Topic1421532-364-1.aspx</link><description>I use both ScriptTasks and ScriptComponents when I need the power of .NET to achieve a specific function.ScriptTask - Use the Microsoft.AnalysisServices namespace to dynamically create partitions in SSAS.ScriptComponent - Time slicing events and optimised aggregations within sorted data flows.  The latter being when the input's sort keys match the primary keys in the aggregation.  Bespoke code but makes the aggregation block much more memory efficient and semi-synchronous.</description><pubDate>Wed, 20 Feb 2013 15:25:00 GMT</pubDate><dc:creator>jm99</dc:creator></item><item><title>RE: script task</title><link>http://www.sqlservercentral.com/Forums/Topic1421532-364-1.aspx</link><description>Hi,I recently had to use a script task to get the modification date of a group of files within a folder. With the Foreach loop task is possible to iterate over a folder and get the file name, fully qualify or the name plus the extension but not other file attributes like de modified date. Then I used a script task and the System.IO C# Library.It would be great if this foreachloop component could be extended to retrieve different file attributes.Hope that helps.</description><pubDate>Wed, 20 Feb 2013 06:14:29 GMT</pubDate><dc:creator>Paul Hernández</dc:creator></item><item><title>RE: script task</title><link>http://www.sqlservercentral.com/Forums/Topic1421532-364-1.aspx</link><description>I use Script Tasks so I can have access to .NET to do things that are not built into SSIS (e.g. FileSystemWatcher class) or maybe are built into SSIS but are not easily consumable (e.g. the Execute Process Task can be cumbersome to configure if you have a lot of or have cryptic command-line parameters).</description><pubDate>Tue, 19 Feb 2013 07:24:21 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: script task</title><link>http://www.sqlservercentral.com/Forums/Topic1421532-364-1.aspx</link><description>Hi[quote]i am curious when to use script task where other components in ssis can't do the job[/quote]Well there is your answer! ;-)One example would be to obtain the error message for a column that was redirected on error (not fail package) , by default SSIS provides the error number but in order to get to the text of the associated error you need a script task..Its one that I have used quite a bit.Here is an example[url]http://www.bidn.com/blogs/JSalvo/ssas/2428/ssis-using-the-script-component-to-obtain-an-error-description[/url]</description><pubDate>Tue, 19 Feb 2013 04:26:09 GMT</pubDate><dc:creator>Andy Hyslop</dc:creator></item><item><title>script task</title><link>http://www.sqlservercentral.com/Forums/Topic1421532-364-1.aspx</link><description>Hi All,i have been using ssis for few years nowi have used most of the components/task but never script taski am a dba so cant do much codingi am curious when to use script task where other components in ssis can't do the jobcan any one please share a scenario where we must use script taskThanks in advance</description><pubDate>Tue, 19 Feb 2013 04:11:05 GMT</pubDate><dc:creator>varmadba</dc:creator></item></channel></rss>