<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"><channel><title>Update to SQLCmdScriptExpander =&gt; 0.2.0.0 is out</title><link>http://blogs.msdn.com/b/jenss/archive/2012/06/25/update-to-sqlcmdscriptexpander-gt-0-2-0-0-is-out.aspx</link><description>(Updated version available here) 
 As suggested by M Merrill in my former post of SQLCMDScriptExpander (which can be found here ), I added an option for providing the encoding of files. So I created another option where you can specify the encoding from</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Update to SQLCmdScriptExpander =&gt; 0.2.0.0 is out</title><link>http://blogs.msdn.com/b/jenss/archive/2012/06/25/update-to-sqlcmdscriptexpander-gt-0-2-0-0-is-out.aspx#10396335</link><pubDate>Fri, 22 Feb 2013 22:31:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10396335</guid><dc:creator>JensSuessmeyer</dc:creator><description>&lt;p&gt;Hi Frank,&lt;/p&gt;
&lt;p&gt;thanks for the Feedback. To the points:&lt;/p&gt;
&lt;p&gt;1. Thanks for reporting, I will fix that.&lt;/p&gt;
&lt;p&gt;2. I understand that this does not make sense in most cases, will recreate the file instead. &lt;/p&gt;
&lt;p&gt;3. That seems to be a bug which I will also fix.&lt;/p&gt;
&lt;p&gt;4. Replaced with what actually ? The replacement would have to be done on runtime of the script. A script can be e.g. ´called with SQMCMD, there you have the -v command to pass in values for parameters. I didn not want to copy any existing functionality, just add missing functionality in my tools. So here is how I use it and what I suggest you.&lt;/p&gt;
&lt;p&gt;-Expand the files with the ScriptExpander tool.&lt;/p&gt;
&lt;p&gt;-Once being expanded, call the created script from SQLCMD and use the -v Switch to pass in parameters.&lt;/p&gt;
&lt;p&gt;For the other things, watch out the next Version which I will tag as the Frank Edition ;-)&lt;/p&gt;
&lt;p&gt;-Jens&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10396335" width="1" height="1"&gt;</description></item><item><title>re: Update to SQLCmdScriptExpander =&gt; 0.2.0.0 is out</title><link>http://blogs.msdn.com/b/jenss/archive/2012/06/25/update-to-sqlcmdscriptexpander-gt-0-2-0-0-is-out.aspx#10396233</link><pubDate>Fri, 22 Feb 2013 16:06:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10396233</guid><dc:creator>Frank</dc:creator><description>&lt;p&gt;I was looking for a tool just like the one you wrote. I find the lack of this functionality in sqlcmd a big disappointment.&lt;/p&gt;
&lt;p&gt;I tried your tool and I found some issues. The first three very very minor.&lt;/p&gt;
&lt;p&gt;1.- In the help usage OutputfFile has two &amp;#39;f&amp;#39;s.&lt;/p&gt;
&lt;p&gt;2.- Every time i run it if the output file exists it appends to it.&lt;/p&gt;
&lt;p&gt;3.- I must explicitly specify an encoding when you have a default one.&lt;/p&gt;
&lt;p&gt;4.- I was really expecting to have the :setvar VarName &amp;quot;VarValue&amp;quot; to be also found and replaced properly in the outputfile.&lt;/p&gt;
&lt;p&gt;Your previous post implies that your tool :&lt;/p&gt;
&lt;p&gt;&amp;quot;In addition, the executing person needs to have a command line interpreter (like SQLCMD) capable of understanding the syntax of :r to pickup the referenced files&amp;quot;.&lt;/p&gt;
&lt;p&gt;If you could fix at least the last one, it would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10396233" width="1" height="1"&gt;</description></item></channel></rss>