<?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: PowerCLI to SQL Databases</title>
	<atom:link href="http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/</link>
	<description>Virtually everything is poshable</description>
	<lastBuildDate>Sun, 21 Mar 2010 12:55:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Virtu-Al</title>
		<link>http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/comment-page-1/#comment-1491</link>
		<dc:creator>Virtu-Al</dc:creator>
		<pubDate>Tue, 24 Nov 2009 10:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=1132#comment-1491</guid>
		<description>&lt;a href=&quot;#comment-1490&quot; rel=&quot;nofollow&quot;&gt;@Paul &lt;/a&gt; 
Now thats cool !</description>
		<content:encoded><![CDATA[<p><a href="#comment-1490" rel="nofollow">@Paul </a><br />
Now thats cool !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/comment-page-1/#comment-1490</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 24 Nov 2009 10:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=1132#comment-1490</guid>
		<description>Alan,

It&#039;s even easier with the SQL 2008 PS module (which is backward compatable with 2005 I believe). Ihere&#039;s a cmdlet called invoke-sqlcmd (example below), so you could replace your function with this one line.

Paul.

C:\PS&gt;Invoke-Sqlcmd -Query &quot;SELECT GETDATE() AS TimeOfQuery;&quot; -ServerInstance &quot;MyComputer\MyInstance&quot;


This example connects to a named instance of the Database Engine on a computer and runs a basic Transact-SQL script
.


TimeOfQuery
-----------
10/7/2007 1:04:20 PM</description>
		<content:encoded><![CDATA[<p>Alan,</p>
<p>It&#8217;s even easier with the SQL 2008 PS module (which is backward compatable with 2005 I believe). Ihere&#8217;s a cmdlet called invoke-sqlcmd (example below), so you could replace your function with this one line.</p>
<p>Paul.</p>
<p>C:\PS&gt;Invoke-Sqlcmd -Query &#8220;SELECT GETDATE() AS TimeOfQuery;&#8221; -ServerInstance &#8220;MyComputer\MyInstance&#8221;</p>
<p>This example connects to a named instance of the Database Engine on a computer and runs a basic Transact-SQL script<br />
.</p>
<p>TimeOfQuery<br />
&#8212;&#8212;&#8212;&#8211;<br />
10/7/2007 1:04:20 PM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/comment-page-1/#comment-1489</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Tue, 24 Nov 2009 03:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=1132#comment-1489</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by alanrenouf: New Post: PowerCLI to SQL Databases http://is.gd/529qY #PowerShell #PowerCLI #VMware...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by alanrenouf: New Post: PowerCLI to SQL Databases <a href="http://is.gd/529qY" rel="nofollow">http://is.gd/529qY</a> #PowerShell #PowerCLI #VMware&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NiTRo</title>
		<link>http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/comment-page-1/#comment-1488</link>
		<dc:creator>NiTRo</dc:creator>
		<pubDate>Tue, 24 Nov 2009 02:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=1132#comment-1488</guid>
		<description>psh4ever ;)</description>
		<content:encoded><![CDATA[<p>psh4ever <img src='http://www.virtu-al.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkavanagh58</title>
		<link>http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/comment-page-1/#comment-1487</link>
		<dc:creator>jkavanagh58</dc:creator>
		<pubDate>Mon, 23 Nov 2009 23:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=1132#comment-1487</guid>
		<description>Doing a similar thing here to keep our database up-to-date but we use MySql (not my choice).  Using the .Net connector so the code is very similar.</description>
		<content:encoded><![CDATA[<p>Doing a similar thing here to keep our database up-to-date but we use MySql (not my choice).  Using the .Net connector so the code is very similar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virtu-Al &#8211; Writing to SQL &#171; powercli.co.uk</title>
		<link>http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/comment-page-1/#comment-1486</link>
		<dc:creator>Virtu-Al &#8211; Writing to SQL &#171; powercli.co.uk</dc:creator>
		<pubDate>Mon, 23 Nov 2009 23:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=1132#comment-1486</guid>
		<description>[...] http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/" rel="nofollow">http://www.virtu-al.net/2009/11/23/powercli-to-sql-databases/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
