<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://consultingblogs.emc.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx</link><description>Many people like to use stored procedures as the source of data for the SSIS pipeline. In theory there is nothing wrong with that however it does have its complications. Depending on the way the stored procedure is written, it may or may not be suitable</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#5410</link><pubDate>Wed, 20 Dec 2006 23:53:39 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:5410</guid><dc:creator>mf_fits</dc:creator><description>&lt;p&gt;Hi Jamie,&lt;/p&gt;
&lt;p&gt;would it not be helpfull to use &amp;quot;SET FMTONLY&amp;quot; before executing the select statement including the stored procedure?&lt;/p&gt;
&lt;p&gt;As described here [&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/ms173839.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms173839.aspx&lt;/a&gt;] it forces to send the metadata.&lt;/p&gt;
&lt;p&gt;We had to use this for some stored procedures, because we faced the same problem that no masterdata was returned as shown here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.fits-consulting.de/blog/content/binary/SET_FMTONLY.jpg"&gt;http://www.fits-consulting.de/blog/content/binary/SET_FMTONLY.jpg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;cheers,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#5411</link><pubDate>Thu, 21 Dec 2006 09:39:24 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:5411</guid><dc:creator>jamie.thomson</dc:creator><description>&lt;p&gt;Markus,&lt;/p&gt;
&lt;p&gt;I've just tried it with the example test_proc shown above and it wouldn't even run in SSMS because I get the error: &lt;/p&gt;
&lt;p&gt;&amp;quot;Invalid object name '#tmp'.&amp;quot;&lt;/p&gt;
&lt;p&gt;I'm happy to be proved wrong though if you can show me an example of it working with &amp;quot;SET FMTONLY&amp;quot; and then removing it and it still working at execute-time.&lt;/p&gt;
&lt;p&gt;-Jamie&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#5655</link><pubDate>Wed, 24 Jan 2007 19:30:18 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:5655</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;Thanks, you just saved me a big headache. &amp;nbsp;This is great info.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#5694</link><pubDate>Thu, 25 Jan 2007 15:30:18 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:5694</guid><dc:creator>Zoran Pecenovic</dc:creator><description>&lt;p&gt;If you use a table variable instead of a temp table it actually works. &lt;/p&gt;
&lt;p&gt;Not sure why though...&lt;/p&gt;
&lt;p&gt;Try this&lt;/p&gt;
&lt;p&gt;create procedure [dbo].[testPrepare]&lt;/p&gt;
&lt;p&gt;as&lt;/p&gt;
&lt;p&gt;declare @t table (a int);&lt;/p&gt;
&lt;p&gt;insert into @t select 1;&lt;/p&gt;
&lt;p&gt;select a from @t;&lt;/p&gt;
&lt;p&gt;go&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#6923</link><pubDate>Wed, 09 May 2007 16:17:15 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:6923</guid><dc:creator>Louis</dc:creator><description>&lt;p&gt;To solve the [same] pb under SQL Server 2005 / OLEDB client:&lt;/p&gt;
&lt;p&gt;just add SET NOCOUNT ON at the begining of the procedure !&lt;/p&gt;
&lt;p&gt;[ SET FMTONLY OFF and table variables don't solve it]&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#6981</link><pubDate>Mon, 14 May 2007 20:39:54 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:6981</guid><dc:creator>Scott A</dc:creator><description>&lt;p&gt;When using this call with a parameter I cannot find a way for this to work.&lt;/p&gt;
&lt;p&gt;SET FMTONLY OFF&lt;/p&gt;
&lt;p&gt;EXEC [dbo].[spy_BlahBlah_All_Blah] 606,606&lt;/p&gt;
&lt;p&gt;Works....&lt;/p&gt;
&lt;p&gt;Passing in the parameters does NOT work.&lt;/p&gt;
&lt;p&gt;SET FMTONLY OFF&lt;/p&gt;
&lt;p&gt;EXEC [dbo].[spy_BlahBlah_All_Blah] ?,?&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#6982</link><pubDate>Mon, 14 May 2007 20:45:17 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:6982</guid><dc:creator>Scott A</dc:creator><description>&lt;p&gt;And also as an added bonus this will not even compile in SSIS, when clicking the OK or preview button SSIS throws and error stating a non-specific error has orrured.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#7105</link><pubDate>Fri, 01 Jun 2007 14:40:44 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:7105</guid><dc:creator>Iram</dc:creator><description>&lt;p&gt;I'm trying to call oracle stored procedure from OleDB Command in SSIS but get an error:&lt;/p&gt;
&lt;p&gt;An OLE DB error has occured. Error Code : 0x80040E51.&lt;/p&gt;
&lt;p&gt;An OLE DB &amp;nbsp;record is available. Source: OraOLEDB Hresult : 0x80040E51. &lt;/p&gt;
&lt;p&gt;Description :&amp;quot;provider cannot provide parameter information and &lt;/p&gt;
&lt;p&gt;SetParameterInfo has not been called.&amp;quot;&lt;/p&gt;
&lt;p&gt;Is someone can help with it?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Iram.Levinger@comverse.com&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#7729</link><pubDate>Fri, 20 Jul 2007 11:25:14 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:7729</guid><dc:creator>RonaldL</dc:creator><description>&lt;p&gt;Did some testing with the OLEDB Source in the Designer when using a stored procedure as the data source.&lt;/p&gt;
&lt;p&gt;--Works in OLEDB Reader, gives back columns and preview&lt;/p&gt;
&lt;p&gt;CREATE PROCEDURE csp_test&lt;/p&gt;
&lt;p&gt;AS&lt;/p&gt;
&lt;p&gt;SET NOCOUNT ON&lt;/p&gt;
&lt;p&gt;SELECT * &lt;/p&gt;
&lt;p&gt;FROM sys.columns&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;-- Does not work at run time, only preview works&lt;/p&gt;
&lt;p&gt;CREATE PROCEDURE csp_test&lt;/p&gt;
&lt;p&gt;AS&lt;/p&gt;
&lt;p&gt;SET NOCOUNT ON&lt;/p&gt;
&lt;p&gt;SELECT * &lt;/p&gt;
&lt;p&gt;INTO #tmp_table&lt;/p&gt;
&lt;p&gt;FROM sys.columns&lt;/p&gt;
&lt;p&gt;SELECT * FROM #tmp_table&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;-- Does work! Works at runtime and design time&lt;/p&gt;
&lt;p&gt;CREATE PROCEDURE csp_test&lt;/p&gt;
&lt;p&gt;AS&lt;/p&gt;
&lt;p&gt;SET FMTONLY OFF&lt;/p&gt;
&lt;p&gt;SET NOCOUNT ON&lt;/p&gt;
&lt;p&gt;SELECT * &lt;/p&gt;
&lt;p&gt;INTO #tmp_table&lt;/p&gt;
&lt;p&gt;FROM sys.columns&lt;/p&gt;
&lt;p&gt;SELECT * FROM #tmp_table&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#7943</link><pubDate>Wed, 01 Aug 2007 13:38:05 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:7943</guid><dc:creator>Panos</dc:creator><description>&lt;p&gt;I can also confirm that:&lt;/p&gt;
&lt;p&gt;SET FMTONLY OFF&lt;/p&gt;
&lt;p&gt;SET NOCOUNT ON&lt;/p&gt;
&lt;p&gt;does work within a stored proc! I didn't make any other changes just that.&lt;/p&gt;
&lt;p&gt;Panos.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#7959</link><pubDate>Fri, 03 Aug 2007 00:54:52 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:7959</guid><dc:creator>Tenny S</dc:creator><description>&lt;p&gt;ditto Panos' comments..&lt;/p&gt;
&lt;p&gt;I have these 2 settings and it worked. &lt;/p&gt;
&lt;p&gt;SET FMTONLY OFF&lt;/p&gt;
&lt;p&gt;SET NOCOUNT ON&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#8080</link><pubDate>Sat, 11 Aug 2007 21:42:31 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:8080</guid><dc:creator>Luke</dc:creator><description>&lt;p&gt;If the function returns more than a tiny amount of data (starting at about 200 rows or so), the table variable will cause SEVERE performance degradation. Table variables, to the best of my understanding, have to be &amp;quot;promoted&amp;quot; at this size (from the heap into the database itself, maybe?) and SQL Server doesn't handle this well at all.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#8193</link><pubDate>Mon, 20 Aug 2007 18:22:24 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:8193</guid><dc:creator>Todd</dc:creator><description>&lt;p&gt;I'm trying to truncate an oracle table. I'm using an OLE DB Command and I get the same error. How can I get around this??&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#8499</link><pubDate>Mon, 17 Sep 2007 13:39:44 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:8499</guid><dc:creator>Manuel</dc:creator><description>&lt;p&gt;Hello:&lt;/p&gt;
&lt;p&gt;I come to this situation of cannot executing a stored Procedure from within an OLE DB Source. I created the function but the issue I have now is that I want to pass a parameter to it like this:&lt;/p&gt;
&lt;p&gt;SELECT &amp;nbsp; &amp;nbsp; col1&lt;/p&gt;
&lt;p&gt;FROM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dbo.test_func(?) AS test_func_1&lt;/p&gt;
&lt;p&gt;When I click the parameters button says the following message:&lt;/p&gt;
&lt;p&gt;&amp;quot;Parameters cannot be xtracted from the SQL Command. The Provider might not help to parse parameter information from the command. In that case, use the &amp;quot;SQL command from variable&amp;quot; access mode, in which the entire SQL command is stored in a variable.&amp;quot;&lt;/p&gt;
&lt;p&gt;I created the function to receive a datetime parameter in it.&lt;/p&gt;
&lt;p&gt;Any insights will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Attn Manuel&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#8841</link><pubDate>Mon, 22 Oct 2007 12:38:51 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:8841</guid><dc:creator>Holly</dc:creator><description>&lt;p&gt;Thanks to all for this thread. &amp;nbsp;Whenever I find a sticky problem, I will usually find a solution on this blog, from Jamie and the commenters who expand on it.&lt;/p&gt;
&lt;p&gt;Holly&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#8852</link><pubDate>Tue, 23 Oct 2007 20:48:54 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:8852</guid><dc:creator>sharon</dc:creator><description>&lt;p&gt;I tried in the SQL window:&lt;/p&gt;
&lt;p&gt;SET FMTONLY on&lt;/p&gt;
&lt;p&gt;Select top 1 from micro_tbl&lt;/p&gt;
&lt;p&gt;SET FMTONLY off&lt;/p&gt;
&lt;p&gt;exec dbo.my_micro_procedure&lt;/p&gt;
&lt;p&gt;It did the metadata okay and created my flat file okay. &amp;nbsp;Would not execute the procedure.&lt;/p&gt;
&lt;p&gt;Tried these statements at the beginning of my stored procedure also. &amp;nbsp;Again did the metadata okay and created the flat file okay. &amp;nbsp;Did not execute the rest of the procedure.&lt;/p&gt;
&lt;p&gt;Any one got any ideas?&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#8935</link><pubDate>Thu, 01 Nov 2007 14:47:12 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:8935</guid><dc:creator>sharon</dc:creator><description>&lt;p&gt;Well, &amp;nbsp;I do not know why I can not follow EXACT directions. &amp;nbsp;I finally did as advised and my procedure works.&lt;/p&gt;
&lt;p&gt;In the Data Flow task:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;SET FMTONLY OFF&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;execute my_procedure name&lt;/p&gt;
&lt;p&gt;In procedure:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;SET NOCOUNT ON&lt;/p&gt;
&lt;p&gt;Thank you!!!!!!&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#9098</link><pubDate>Mon, 19 Nov 2007 08:02:40 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:9098</guid><dc:creator>ssis_rookie</dc:creator><description>&lt;p&gt;Just encountered the same problem. I am converting DTS to SSIS ... and change connection from SQL 2000 to SQL 2005. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here's the deal:&lt;/p&gt;
&lt;p&gt;I used migration wizard to migrate the dts; the dataflow has an OLE DB Source running a parameterized Stored Procedure &amp;nbsp;... all is well and no error found after migration ... was able to compile, run, etc. &amp;nbsp;OLE DB SOurce is using OLE DB Connection Manager to SQL 2000&lt;/p&gt;
&lt;p&gt;So I changed it to our new server which is SQL 2005, and there it is ... &amp;quot;No value is given for one or more required parameters&amp;quot;!!! Same OLE DB Source, same sp, same parameter mapping ... just a change in server.&lt;/p&gt;
&lt;p&gt;Any idea what's causing the problem??? Anyway ... temporarily I used SQL Command from Variable and build my query from there. That seems to do the trick but very ugly implementation.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#9432</link><pubDate>Tue, 08 Jan 2008 14:08:13 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:9432</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Just another way to solve the &amp;quot;Stored procedures expose no explicit output contract&amp;quot;. My intention was to avoid UDF. My colleague showed this trick to me. This seemed to work, i hope it might help someone&lt;/p&gt;
&lt;p&gt; &amp;nbsp;1 create procedure test_proc&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;2 as&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;3 begin&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;4 &amp;nbsp;If 1 =2&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;5 &amp;nbsp;Select Null As col1 , Null As Col2&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; --Table created at the top of the procedure&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 7 &amp;nbsp; &amp;nbsp; create table #tmp &lt;/p&gt;
&lt;p&gt; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; (&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; col1 varchar(20),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; col2 varchar(50)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 12 &lt;/p&gt;
&lt;p&gt; &amp;nbsp; 13 &amp;nbsp; &amp;nbsp; --Put some values in&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 14 &amp;nbsp; &amp;nbsp; insert into #tmp&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 15 &amp;nbsp; &amp;nbsp; values &amp;nbsp; &amp;nbsp;('abc','xyz')&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 16 &lt;/p&gt;
&lt;p&gt; &amp;nbsp; 17 &amp;nbsp; &amp;nbsp; --Only now do we return some data&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 18 &amp;nbsp; &amp;nbsp; Select col1,col2&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 19 &amp;nbsp; &amp;nbsp; From &amp;nbsp; &amp;nbsp;#tmp&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 20 END&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#9504</link><pubDate>Thu, 17 Jan 2008 17:19:35 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:9504</guid><dc:creator>jdieter</dc:creator><description>&lt;p&gt;This doesn't work. It gets the meta data to the package, but when you execute the package you get [OLE DB Source [109]] Error: A rowset based on the SQL command was not returned by the OLE DB provider. &lt;/p&gt;
&lt;p&gt;does ANYONE have proof that an SSIS package can get data from a stored procedure? My proc crosstabs data into a # table then selects from the table. Is there ANY way to get this to work?&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#9671</link><pubDate>Mon, 04 Feb 2008 20:27:28 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:9671</guid><dc:creator>Doug Tumeo</dc:creator><description>&lt;p&gt;I just tried this, and it solved my problem. To be clear on what I've tried...&lt;/p&gt;
&lt;p&gt;Created stored proc ps_GetWorkDates that &amp;quot;returns&amp;quot; a table variable that is populated with a series of dates. In order for this to work, I had to include SET NOCOUNT ON in the proc, as instructed above.&lt;/p&gt;
&lt;p&gt;Then, created an SSIS package that &amp;quot;reads&amp;quot; the proc output and stages my data in the warehouse using an OLE DB Source with this SQL Command Text:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; SET FMTONLY OFF&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Execute ps_GetWorkDates&lt;/p&gt;
&lt;p&gt;So in short, THANKS!&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#9710</link><pubDate>Mon, 11 Feb 2008 10:01:13 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:9710</guid><dc:creator>piyush</dc:creator><description>&lt;p&gt;SFTP IN ASP.NET USING C#&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#9909</link><pubDate>Wed, 27 Feb 2008 13:41:32 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:9909</guid><dc:creator>Tuiyan Gulab</dc:creator><description>&lt;p&gt;In my case, SSIS package is coming through a variable. When I set SET FMTONLY OFF withing stored procedure along with SET NOCOUNT ON, BID Studio goes for everlasting internal processing and then I need to press Ctl + Alt + Del to abnormally terminate it and restart it. Any suggesstions?&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#9924</link><pubDate>Thu, 28 Feb 2008 07:12:27 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:9924</guid><dc:creator>Sachit</dc:creator><description>&lt;p&gt;My stored procedure is having a temp table and it is taking around 9 mins to execute. Now when I set it as a data source to SSIS package, it seems SSIS package starts executing the stored proc at design time only to fetch the metadata and because stored procedure is taking 9 mins so drag and drop in SSIS also hangs up.&lt;/p&gt;
&lt;p&gt;Is it the same problem you are facing Tuyan?&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#10548</link><pubDate>Wed, 09 Apr 2008 22:24:45 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:10548</guid><dc:creator>JENNIFER</dc:creator><description>&lt;p&gt;Using the FMTONLY OFF worked for me as well...but there are definately performance issues encountered when you do so. &amp;nbsp;It seems to be running the proc once to get the metadata list and once then to retrieve your data. &amp;nbsp;If your proc takes a long time to run...you are waiting for a while.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#10981</link><pubDate>Wed, 07 May 2008 05:19:29 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:10981</guid><dc:creator>Conor Ryan</dc:creator><description>&lt;p&gt;'SET NOCOUNT ON' worked for me. Thanks&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#12013</link><pubDate>Mon, 28 Jul 2008 10:40:01 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:12013</guid><dc:creator>FreeHansje</dc:creator><description>&lt;p&gt;Tnx for the info, helped a lot.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#12055</link><pubDate>Tue, 29 Jul 2008 17:28:07 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:12055</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;I just fought SSIS for an hour trying to get it to read data from a certain stored procedure via an OLE DB source. &amp;nbsp;Other stored procedures work fine, and I have no clue why this one in particular caused a runtime exception (the old &amp;quot;A rowset based on the SQL command was not returned by the OLE DB provider.&amp;quot;). &amp;nbsp;The stored procedure in question uses no temp tables or parameters -- it's just a single query. &amp;nbsp;I tried both the SET NOCOUNT ON and SET FMTONLY OFF, to no avail. &amp;nbsp;Finally, I flipped over to a SqlDataReader source, which fixed the problem. &amp;nbsp;Only issue there is that I've run into a bunch of issues on other projects with the SqlDataReader source and generally try to avoid it. &amp;nbsp;I really wish SSIS would just work the way we expect it to... &lt;/p&gt;
&lt;p&gt;I wasn't able to try the TVF because there are some legacy constraints in this environment (mostly due to personnel mindset rather than actual technical problems). &amp;nbsp;But thanks, Jamie, for the nod in this post; it's always fun to find one's own name while researching a problem :-)&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#12278</link><pubDate>Tue, 19 Aug 2008 19:43:27 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:12278</guid><dc:creator>Angel Abundez</dc:creator><description>&lt;p&gt;Table variable worked for me. Thanks to Zoran for his comment!&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#12295</link><pubDate>Wed, 20 Aug 2008 16:47:59 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:12295</guid><dc:creator>Ian</dc:creator><description>&lt;p&gt;After finding out the function would not work for me, I tried the SET FMTONLY OFF and SET NOCOUNT ON in my stored procedure, which worked, but like other people mentioned, Visual Studio seems to run the stored procedure during design time which slows EVERYTHING down. But I think I found a work around:&lt;/p&gt;
&lt;p&gt;* I used a DataReaderSource, and set the SQLCommand to &amp;quot;SET FMTONLY OFF; EXEC myproc&amp;quot;&lt;/p&gt;
&lt;p&gt;* I click on &amp;quot;Column Mappings&amp;quot; and then waited while it got the columns.&lt;/p&gt;
&lt;p&gt;* I clicked back on to &amp;quot;Component Properties&amp;quot; and set ValidateExternalMetadata to FALSE.&lt;/p&gt;
&lt;p&gt;So, it seems that setting ValidateExternalMetadata to FALSE will let Visual Studio save the current metadata and not check it every time you try to do something. &lt;/p&gt;
&lt;p&gt;Also, I expected the package to take twice as long when I eventually ran it (run the procedure once to check the metadata and then again to actually get the data), but it ran just fine.&lt;/p&gt;
&lt;p&gt;I'm not sure if the ValidateExternalMetadata works for the OLE DB Source, but it seems to be working for the DataReaderSource.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#12523</link><pubDate>Fri, 12 Sep 2008 21:46:51 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:12523</guid><dc:creator>Chuck</dc:creator><description>&lt;p&gt;For me, one of my procedure parameters was type xml. I couldn't get the columns to show up in the Ole Db Source for the life of me. &amp;nbsp;After I changed the paramter type to varchar(max), I was able to see the column names. &amp;nbsp;Unfortunately, I'm not at a point to see if the runtime works, yet.&lt;/p&gt;
&lt;p&gt;Chuck&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#13291</link><pubDate>Tue, 18 Nov 2008 01:15:58 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:13291</guid><dc:creator>Henrik Krogh</dc:creator><description>&lt;p&gt;The trick is to include a non-executed dummy select statement at the top of the SP as well as the &amp;quot;nocount on&amp;quot; option.&lt;/p&gt;
&lt;p&gt;The dummy select statement &amp;quot;displays&amp;quot; metadata (or rather the OLE db uses the first encountered select statement to generate metadata) &amp;nbsp; to the SSIS pipeline. It's important that it is a non-executed statement f.ex. in a IF 1=2 block (else SSIS will use the dummy select as the result and ignore further output). &lt;/p&gt;
&lt;p&gt;you make sure that the metadata of the dummy result set &amp;nbsp;is equal to the intended result set of the sp.&lt;/p&gt;
&lt;p&gt;You need the nocount on option, because SSIS will get confused by the verbose output of Sps. (that yields this error:A rowset based on the SQL command was not returned by the OLE DB provider. )&lt;/p&gt;
&lt;p&gt;When you do the above you can compose any sp of any complexity - as long as it delivers a single result set that matches the dummy select statement's &amp;nbsp;metadata.&lt;/p&gt;
&lt;p&gt;I believe that only using the no count option, requires that the first select statement has compatible metadata with the intended result set of the procedure - though havn't tjecked it.&lt;/p&gt;
</description></item><item><title>re: SSIS: Using stored procedures inside an OLE DB Source component</title><link>http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx#13312</link><pubDate>Tue, 18 Nov 2008 13:13:15 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:13312</guid><dc:creator>S</dc:creator><description>&lt;p&gt;THANKS SO MUCH! &lt;/p&gt;
&lt;p&gt;SET FMTONLY OFF works a treat!&lt;/p&gt;
</description></item></channel></rss>