 




<?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: Embed date in SQLBase unload filename</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 14:11:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: flame</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/#comment-60453</link>
		<dc:creator>flame</dc:creator>
		<pubDate>Mon, 02 Mar 2009 18:13:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-60453</guid>
		<description><![CDATA[Thats why the first line of the script is :

del Autoname_Unload.sql

I though the single &quot;&gt;&quot; was a typo... (Needed more coffe this morning I guess...)

I&#039;m planning on running a test tonight, then going live after that.

Thank you again!
Flame]]></description>
		<content:encoded><![CDATA[<p>Thats why the first line of the script is :</p>
<p>del Autoname_Unload.sql</p>
<p>I though the single &#8220;&gt;&#8221; was a typo&#8230; (Needed more coffe this morning I guess&#8230;)</p>
<p>I&#8217;m planning on running a test tonight, then going live after that.</p>
<p>Thank you again!<br />
Flame</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/#comment-60451</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 02 Mar 2009 17:51:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-60451</guid>
		<description><![CDATA[Yes Flame, you cannot use the mirror of &#039;/&#039; here (I guess it is taken as some type of escape character)...  :-(

I noticed you change &#039;&gt;&#039; for &#039;&gt;&gt;&#039; in this line:

echo set server server1; &gt;&gt; script.txt

Have you tried running this script more than once ?  I think it will cause the new script to be appended at the end of the previously generated, so the file will grow endlessly.]]></description>
		<content:encoded><![CDATA[<p>Yes Flame, you cannot use the mirror of &#8216;/&#8217; here (I guess it is taken as some type of escape character)&#8230;  <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>I noticed you change &#8216;&gt;&#8217; for &#8216;&gt;&gt;&#8217; in this line:</p>
<p>echo set server server1; &gt;&gt; script.txt</p>
<p>Have you tried running this script more than once ?  I think it will cause the new script to be appended at the end of the previously generated, so the file will grow endlessly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flame</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/#comment-60450</link>
		<dc:creator>flame</dc:creator>
		<pubDate>Mon, 02 Mar 2009 17:20:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-60450</guid>
		<description><![CDATA[Apparently you can&#039;t even type the symbol that is a mirror image to &quot;/&quot; in the discuss section. Interesting...]]></description>
		<content:encoded><![CDATA[<p>Apparently you can&#8217;t even type the symbol that is a mirror image to &#8220;/&#8221; in the discuss section. Interesting&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flame</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/#comment-60449</link>
		<dc:creator>flame</dc:creator>
		<pubDate>Mon, 02 Mar 2009 17:17:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-60449</guid>
		<description><![CDATA[Interesting note here...

The files I copied had the &quot;&quot; symbol in the correct places in the paths of the batch files... but they did not seem to paste into the discussion section... Is there a way to edit the comments to reflect this?]]></description>
		<content:encoded><![CDATA[<p>Interesting note here&#8230;</p>
<p>The files I copied had the &#8220;&#8221; symbol in the correct places in the paths of the batch files&#8230; but they did not seem to paste into the discussion section&#8230; Is there a way to edit the comments to reflect this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flame</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/#comment-60448</link>
		<dc:creator>flame</dc:creator>
		<pubDate>Mon, 02 Mar 2009 17:13:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-60448</guid>
		<description><![CDATA[Wow,  Silly mistake (which the system infomed me of...) You can&#039;t have a &quot;/&quot; in a file name (doh!)
Fixed code below:

Batch file:
del Autoname_Unload.sql
set date=%date:~0,3%_%date:~4,2%_%date:~7,2%_%date:~10,4%.UNL; 
echo set server server1; &gt;&gt; Autoname_Unload.sql 
echo connect testdb 1 sysadm/XXXXXX; &gt;&gt; Autoname_Unload.sql 
echo update statistics on database; &gt;&gt; Autoname_Unload.sql 
echo check database; &gt;&gt; Autoname_Unload.sql 
echo commit; &gt;&gt; Autoname_Unload.sql 
echo SET BULK ON; &gt;&gt; Autoname_Unload.sql 
echo unload database z:backupsVIS_%date% &gt;&gt; Autoname_Unload.sql 
echo disconnect all; &gt;&gt; Autoname_Unload.sql 
echo EXIT; &gt;&gt; Autoname_Unload.sql

Resulting Script:

set server server1;  
connect testdb 1 sysadm/XXXXXX;  
update statistics on database;  
check database;  
commit;  
SET BULK ON;  
unload database z:backupsVIS_Mon_03_02_2009.UNL;   
disconnect all;  
EXIT; 

That&#039;s better!
Thanks again Carlosdl!]]></description>
		<content:encoded><![CDATA[<p>Wow,  Silly mistake (which the system infomed me of&#8230;) You can&#8217;t have a &#8220;/&#8221; in a file name (doh!)<br />
Fixed code below:</p>
<p>Batch file:<br />
del Autoname_Unload.sql<br />
set date=%date:~0,3%_%date:~4,2%_%date:~7,2%_%date:~10,4%.UNL;<br />
echo set server server1; &gt;&gt; Autoname_Unload.sql<br />
echo connect testdb 1 sysadm/XXXXXX; &gt;&gt; Autoname_Unload.sql<br />
echo update statistics on database; &gt;&gt; Autoname_Unload.sql<br />
echo check database; &gt;&gt; Autoname_Unload.sql<br />
echo commit; &gt;&gt; Autoname_Unload.sql<br />
echo SET BULK ON; &gt;&gt; Autoname_Unload.sql<br />
echo unload database z:backupsVIS_%date% &gt;&gt; Autoname_Unload.sql<br />
echo disconnect all; &gt;&gt; Autoname_Unload.sql<br />
echo EXIT; &gt;&gt; Autoname_Unload.sql</p>
<p>Resulting Script:</p>
<p>set server server1;<br />
connect testdb 1 sysadm/XXXXXX;<br />
update statistics on database;<br />
check database;<br />
commit;<br />
SET BULK ON;<br />
unload database z:backupsVIS_Mon_03_02_2009.UNL;<br />
disconnect all;<br />
EXIT; </p>
<p>That&#8217;s better!<br />
Thanks again Carlosdl!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flame</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/embed-date-in-sqlbase-unload-filename/#comment-60447</link>
		<dc:creator>flame</dc:creator>
		<pubDate>Mon, 02 Mar 2009 16:54:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-60447</guid>
		<description><![CDATA[Carlosdl,
I made a few changes listed below, but this is EXACTLY what I needed. The changes is made removed the space that was appearing after the filename, but before the &quot;.txt&quot; extension as well as a space that appeared between the filename and the “;”
Thank you!
-Flame

Modified bat file:
&lt;pre&gt;
del script.txt
set date=%date:~0,3%_%date:~4,13%.UNL; 
echo set server server1; &gt;&gt; script.txt 
echo connect testdb 1 sysadm/XXXXXX; &gt;&gt; script.txt 
echo update statistics on database; &gt;&gt; script.txt 
echo check database; &gt;&gt; script.txt 
echo commit; &gt;&gt; script.txt 
echo SET BULK ON; &gt;&gt; script.txt 
echo unload database z:backupsVIS_%date% &gt;&gt; script.txt 
echo disconnect all; &gt;&gt; script.txt 
echo EXIT; &gt;&gt; script.txt
&lt;/pre&gt;
Resulting Script:
&lt;pre&gt;
set server server1;  
connect testdb 1 sysadm/XXXXXX;  
update statistics on database;  
check database;  
commit;  
SET BULK ON;  
unload database z:backupsVIS_Mon_03/02/2009.UNL;   
disconnect all;  
EXIT; 
&lt;/pre&gt;

&lt;i&gt;&lt;b&gt;Perfect!&lt;/b&gt;&lt;/i&gt;]]></description>
		<content:encoded><![CDATA[<p>Carlosdl,<br />
I made a few changes listed below, but this is EXACTLY what I needed. The changes is made removed the space that was appearing after the filename, but before the &#8220;.txt&#8221; extension as well as a space that appeared between the filename and the “;”<br />
Thank you!<br />
-Flame</p>
<p>Modified bat file:</p>
<pre>
del script.txt
set date=%date:~0,3%_%date:~4,13%.UNL; 
echo set server server1; &gt;&gt; script.txt 
echo connect testdb 1 sysadm/XXXXXX; &gt;&gt; script.txt 
echo update statistics on database; &gt;&gt; script.txt 
echo check database; &gt;&gt; script.txt 
echo commit; &gt;&gt; script.txt 
echo SET BULK ON; &gt;&gt; script.txt 
echo unload database z:backupsVIS_%date% &gt;&gt; script.txt 
echo disconnect all; &gt;&gt; script.txt 
echo EXIT; &gt;&gt; script.txt
</pre>
<p>Resulting Script:</p>
<pre>
set server server1;  
connect testdb 1 sysadm/XXXXXX;  
update statistics on database;  
check database;  
commit;  
SET BULK ON;  
unload database z:backupsVIS_Mon_03/02/2009.UNL;   
disconnect all;  
EXIT; 
</pre>
<p><i><b>Perfect!</b></i></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.064 seconds using memcached
Object Caching 343/344 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 15:15:39 -->