<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.developerdotstar.com/community" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>developer.* Blogs - Inline Comments in SSIS OLE-DB Command SQL (And Other Tricks) - Comments</title>
 <link>http://www.developerdotstar.com/community/node/432</link>
 <description>Comments for &quot;Inline Comments in SSIS OLE-DB Command SQL (And Other Tricks)&quot;</description>
 <language>en</language>
<item>
 <title>SSIS OLE Data Transformation with Output Columns</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-3358</link>
 <description>&lt;p&gt;Aaarrrrggghh - this doesn&#039;t work for me!&lt;/p&gt;
&lt;p&gt;I&#039;ve created the sp &amp;amp; call/invoke it from within OLE DB Command exactly as specified, and whilst I can refresh + OK out of the transform without any error being raised, it falls down whilst validating the package. I get the following error:&lt;/p&gt;
&lt;p&gt;&#039;...component OLE DB Command failed validation and returned validation status VS_ISBROKEN...&#039;&lt;/p&gt;
&lt;p&gt;Any ideas???&lt;br /&gt;
Cheers,&lt;/p&gt;
&lt;p&gt;Tamim Sadikali.&lt;/p&gt;
</description>
 <pubDate>Wed, 10 Jan 2007 04:36:19 -0800</pubDate>
 <dc:creator>Tamim Sadikali</dc:creator>
 <guid isPermaLink="false">comment 3358 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Stored Procedure Named Paramertes</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-1673</link>
 <description>&lt;p&gt;How can I use named parameters passing for stored procs in OLE-DB Command transformation ?&lt;br /&gt;
For example, say I have stored proc&lt;/p&gt;
&lt;p&gt;create proc LookupValue&lt;br /&gt;
 @Key1 varchar(20) = NULL,&lt;br /&gt;
 @Key2 varchar(20) = NULL,&lt;br /&gt;
 @Value int OUTPUT&lt;br /&gt;
AS&lt;br /&gt;
BEGIN&lt;br /&gt;
 ---- Some logic to lookup value using supplied non null keys&lt;br /&gt;
END&lt;/p&gt;
&lt;p&gt;I want to invoke this proc using named parametrs&lt;br /&gt;
EXEC LookupValue @Key2 = &#039;x&#039;&lt;br /&gt;
EXEC LookupValue @Key1 = &#039;y&#039;&lt;br /&gt;
EXEC LookupValue @Key2 = &#039;x&#039;, @Key1 = &#039;y&#039;&lt;/p&gt;
&lt;p&gt;Can I set OLE-DB Command transformation&#039;s sql command property to&lt;br /&gt;
EXEC LookupValue @Key1 = ?,@Key2 = ?&lt;br /&gt;
and pass parameters to it.&lt;/p&gt;
&lt;p&gt;- Vaibhav&lt;/p&gt;
</description>
 <pubDate>Fri, 17 Nov 2006 06:39:06 -0800</pubDate>
 <dc:creator>Vaibhav Gundapwar</dc:creator>
 <guid isPermaLink="false">comment 1673 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>SSIS OLE Data Transformation with Output Columns</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-1461</link>
 <description>&lt;p&gt;Doh... you have to speciy in the OLE DB Command sql command field that the param is &quot;output&quot; (like you would when calling from another sproc). As in:&lt;/p&gt;
&lt;p&gt;OLE DB Command Transformation editor:&lt;br /&gt;
  Common Properties -&amp;gt; SqlCommand&lt;br /&gt;
     sp_myproc ?, ?, ? output&lt;/p&gt;
&lt;p&gt;Where the sproc api is:&lt;/p&gt;
&lt;p&gt;     create procedure sp_myproc&lt;br /&gt;
       @pi_param1    varchar(10)&lt;br /&gt;
       @pi_param2    varchar(10)&lt;br /&gt;
       @po_param3    varchar(10) out&lt;br /&gt;
     as&lt;br /&gt;
     begin&lt;br /&gt;
        ...&lt;br /&gt;
     end&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;  Wayne&lt;/p&gt;
</description>
 <pubDate>Wed, 30 Aug 2006 03:28:31 -0700</pubDate>
 <dc:creator>Wayne Morrison</dc:creator>
 <guid isPermaLink="false">comment 1461 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>SSIS OLE Data Transformation with Output Columns</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-1460</link>
 <description>&lt;p&gt;It is a useful transformation and I use it with stored procedures under the hood. However, I&#039;m struggling to work out how to tie output columns of the procedure back to the transformation.&lt;/p&gt;
&lt;p&gt;I used a Dereved Column transform to add an extra datetime column to my input schema. I then hope to map my string date and time field in as input columns and return a datetime. The proc works but the result is not returned.&lt;/p&gt;
&lt;p&gt;Oh well, we&#039;ll see. &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;  Wayne&lt;/p&gt;
</description>
 <pubDate>Wed, 30 Aug 2006 02:51:21 -0700</pubDate>
 <dc:creator>Wayne Morrison</dc:creator>
 <guid isPermaLink="false">comment 1460 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Stored Procedure Arguments</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-1245</link>
 <description>&lt;p&gt;Thanks for mentioning this. After writing this post I subsequently discovered this fact and started creating stored procedures for all inserts and updates. I generally prefer to encapsulate queries in stored procedures anyway, but I didn&#039;t use them with SSIS at first.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;br /&gt;
Dan&lt;/p&gt;
</description>
 <pubDate>Mon, 03 Jul 2006 20:11:07 -0700</pubDate>
 <dc:creator>Daniel Read</dc:creator>
 <guid isPermaLink="false">comment 1245 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Inline Comments in SSIS OLE-DB Command SQL (And Other Tricks)</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-1243</link>
 <description>&lt;p&gt;I ran into a similar issue -- that of safely binding parameters to lists where all you get back is Parameter_0, Parameter_1, etc.&lt;/p&gt;
&lt;p&gt;To get around it, I created very simple stored procedures with correctly named/typed parameters.  Now when I call the stored procedures, the names of the parameters are shown (rather than the Parameter_0 type of name.)  Much safer!&lt;/p&gt;
&lt;p&gt;So there&#039;s an alternative to using comments, and then having to use search/replace, etc, etc.&lt;/p&gt;
</description>
 <pubDate>Mon, 03 Jul 2006 17:14:50 -0700</pubDate>
 <dc:creator>Bruce W Cassidy</dc:creator>
 <guid isPermaLink="false">comment 1243 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Professional SQL Server 2005 Integration Services</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-931</link>
 <description>&lt;p&gt;Thanks Dan,&lt;/p&gt;
&lt;p&gt;The book has been very helpful to me so far. Not so much because it is deeper than what is in MSDN/BOL, but because it is broader. What I mean is that every topic discussed has one or more associated examples explicating good techniques, and it is all laid out in a nicely progressive manner. Simple to complex, basic to advanced...culminating in a full case study example (which I have yet to work through in detail, but I have at least read through it and understood it). I usually learn best by seeing how others have done it and then imitating their techniques, so I have found it quite helpful. I wish it had been available back when I started using SSIS. My very first package used the Script Component and regex&#039;s, so I certainly dived in head-first.&lt;/p&gt;
&lt;p&gt;Not only that, but there are some good tips I found along the way. For example, when I first started with SSIS I tried creating an Excel source and SQL Server destination, and kept getting errors related to not using unicode columns in my destination tables. This book explains why this is the case, and has some good advice on how to work around it.&lt;/p&gt;
&lt;p&gt;I&#039;m not sure that this book would teach you anything, since you seem to be a lot further along than me in most SSIS areas. But I suggest you browse through it at the local technical bookstore and see if it provides you any value. There is some redundant material in the book (seems to be symptomatic of the Wrox multi-author approach), but it is better than most. And the redundancy does allow you to pick up any chapter and know what is going on without having to refer back to previous chapters.&lt;/p&gt;
&lt;p&gt;So, to sum up, I have found the BOL articles to be comprehensive and detailed, but the Wrox book is definately helpful in (i) fleshing out how the various parts of SSIS integrate, and (ii) giving good examples on how to accomplish this.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Paul&lt;br /&gt;
p.s. Thanks for checking out the blog. You may be the first intentional hit!&lt;/p&gt;
</description>
 <pubDate>Mon, 06 Mar 2006 08:11:28 -0800</pubDate>
 <dc:creator>Paul</dc:creator>
 <guid isPermaLink="false">comment 931 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Thanks, Paul</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-926</link>
 <description>&lt;p&gt;I appreciate your taking the time to comment, Paul. Always nice to receive feedback. I just checked out &lt;a href=&quot;http://spaces.msn.com/virtualgenius/&quot;&gt;your blog&lt;/a&gt;; you&#039;ve been posting some useful and interesting things yourself.&lt;/p&gt;
&lt;p&gt;I see in your latest post you mention the new Wrox book  &lt;a href=&quot;http://www.amazon.com/gp/product/0764584359/developerdots-20&quot;&gt;Professional SQL Server 2005 Integration Services&lt;/a&gt;. I have not purchased this yet, but was planning to check it out. Have you been satisfied with the book? Does it go deeper than the basic info already available in MSDN/BOL?&lt;/p&gt;
&lt;p&gt;Best,&lt;br /&gt;
Dan&lt;/p&gt;
</description>
 <pubDate>Thu, 02 Mar 2006 11:20:47 -0800</pubDate>
 <dc:creator>Daniel Read</dc:creator>
 <guid isPermaLink="false">comment 926 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>SSIS &amp; Inline comments</title>
 <link>http://www.developerdotstar.com/community/node/432#comment-925</link>
 <description>&lt;p&gt;Dan,&lt;/p&gt;
&lt;p&gt;I enjoy reading your blog and have found it very helpful in my own SSIS adventures. Thanks very much. I have had major issues in the past using comments in TSQL in DTS, so it is good to know that SSIS is a lot smarter with this.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Paul.&lt;/p&gt;
</description>
 <pubDate>Thu, 02 Mar 2006 11:08:06 -0800</pubDate>
 <dc:creator>Paul Rayner</dc:creator>
 <guid isPermaLink="false">comment 925 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Inline Comments in SSIS OLE-DB Command SQL (And Other Tricks)</title>
 <link>http://www.developerdotstar.com/community/node/432</link>
 <description>&lt;p&gt;I discovered a nice SQL 2K5 Integration Services trick today with the OLE-DB Command transformation (and I would imagine the same thing works in other similar contexts). I&#039;m referring to the ability to include a comment inside of the custom SQL statement used with an OLE-DB Command. This perhaps seems obvious, but it wasn&#039;t something that occurred to me at first. Here&#039;s what I mean:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.developerdotstar.com/community/node/432&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.developerdotstar.com/community/node/432#comment</comments>
 <category domain="http://www.developerdotstar.com/community/taxonomy/term/58">SSIS (SQL Server Integration Services)</category>
 <pubDate>Thu, 02 Mar 2006 10:23:59 -0800</pubDate>
 <dc:creator>Daniel Read</dc:creator>
 <guid isPermaLink="false">432 at http://www.developerdotstar.com/community</guid>
</item>
</channel>
</rss>
