<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Turn Your Stored Procedures Into PowerShell Functions &#8211; MetaProgramming With PowerShell</title>
	<atom:link href="http://blog.usepowershell.com/2009/04/turn-your-stored-procedures-into-powershell-functions-metaprogramming-with-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.usepowershell.com/2009/04/turn-your-stored-procedures-into-powershell-functions-metaprogramming-with-powershell/</link>
	<description>Real Admins Script</description>
	<lastBuildDate>Thu, 09 Sep 2010 07:35:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Steven Murawski</title>
		<link>http://blog.usepowershell.com/2009/04/turn-your-stored-procedures-into-powershell-functions-metaprogramming-with-powershell/comment-page-1/#comment-61</link>
		<dc:creator>Steven Murawski</dc:creator>
		<pubDate>Thu, 09 Apr 2009 16:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.usepowershell.com/2009/04/turn-your-stored-procedures-into-powershell-functions-metaprogramming-with-powershell/#comment-61</guid>
		<description>Bernd,

Nice catch.. I&#039;ve only been testing with a number of stored procedures that return most of their values via output parameters.  I&#039;ll have to create some stored procs to test with that return result sets.

Thanks!</description>
		<content:encoded><![CDATA[<p>Bernd,</p>
<p>Nice catch.. I&#8217;ve only been testing with a number of stored procedures that return most of their values via output parameters.  I&#8217;ll have to create some stored procs to test with that return result sets.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd Kriszio</title>
		<link>http://blog.usepowershell.com/2009/04/turn-your-stored-procedures-into-powershell-functions-metaprogramming-with-powershell/comment-page-1/#comment-60</link>
		<dc:creator>Bernd Kriszio</dc:creator>
		<pubDate>Thu, 09 Apr 2009 16:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.usepowershell.com/2009/04/turn-your-stored-procedures-into-powershell-functions-metaprogramming-with-powershell/#comment-60</guid>
		<description>function New-StoredProcFunction currently doesn&#039;t work when the the stored procedure return resultssets. Replacing  lines 119 - 123 with
		$ScriptText += @&#039;
$connection.Open()  &#124; out-null
#$command.ExecuteNonQuery() &#124; out-null
$adapter = New-Object System.Data.SqlClient.SqlDataAdapter $command
$dataset = New-Object System.Data.DataSet
[void] $adapter.Fill($dataSet)
$connection.Close()
$dataSet.Tables &#124; ForEach-Object {$_.Rows} 

&#039;@	
Brings you one step further. But then there are still sp&#039;s returning more than 1 Resultset and of course those returning no resultsets. There is still some work to be done to get it all round.</description>
		<content:encoded><![CDATA[<p>function New-StoredProcFunction currently doesn&#8217;t work when the the stored procedure return resultssets. Replacing  lines 119 &#8211; 123 with<br />
		$ScriptText += @&#8217;<br />
$connection.Open()  | out-null<br />
#$command.ExecuteNonQuery() | out-null<br />
$adapter = New-Object System.Data.SqlClient.SqlDataAdapter $command<br />
$dataset = New-Object System.Data.DataSet<br />
[void] $adapter.Fill($dataSet)<br />
$connection.Close()<br />
$dataSet.Tables | ForEach-Object {$_.Rows} </p>
<p>&#8216;@<br />
Brings you one step further. But then there are still sp&#8217;s returning more than 1 Resultset and of course those returning no resultsets. There is still some work to be done to get it all round.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
