 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; LOOP statement</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/database/loop-statement/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sun, 26 May 2013 01:32:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Powershell, loop through two different arrays?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/powershell-loop-through-two-different-arrays/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/powershell-loop-through-two-different-arrays/#comments</comments>
		<pubDate>Mon, 20 Aug 2012 23:12:37 +0000</pubDate>
		<dc:creator>bradob</dc:creator>
				<category><![CDATA[Arrays]]></category>
		<category><![CDATA[LOOP statement]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Scripts]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/powershell-loop-through-two-different-arrays/</guid>
		<description><![CDATA[New Answer by Colin Smith]]></description>
				<content:encoded><![CDATA[New Answer by Colin Smith]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/powershell-loop-through-two-different-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loop is seen on router but line protocol is down</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/loop-is-seen-on-router-but-line-protocol-is-down/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/loop-is-seen-on-router-but-line-protocol-is-down/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 21:37:49 +0000</pubDate>
		<dc:creator>Rohanpatil888</dc:creator>
				<category><![CDATA[Data link protocols]]></category>
		<category><![CDATA[LOOP statement]]></category>
		<category><![CDATA[Routers]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Loop is seen on router but line protocol is down, where could be the issue?]]></description>
				<content:encoded><![CDATA[<p>Loop is seen on router but line protocol is down, where could be the issue?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/loop-is-seen-on-router-but-line-protocol-is-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For Do rename loop</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/for-do-rename-loop/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/for-do-rename-loop/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 13:54:05 +0000</pubDate>
		<dc:creator>ConFlicker</dc:creator>
				<category><![CDATA[Batch file]]></category>
		<category><![CDATA[Batch files]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[LOOP statement]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Answer by]]></description>
				<content:encoded><![CDATA[New Answer by ]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/for-do-rename-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looping Ping</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/looping-ping/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/looping-ping/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 13:05:53 +0000</pubDate>
		<dc:creator>ConFlicker</dc:creator>
				<category><![CDATA[Batch debugging]]></category>
		<category><![CDATA[Batch job]]></category>
		<category><![CDATA[LOOP statement]]></category>
		<category><![CDATA[ping command]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Could someone please help me with this command to loop through the IPlist table and report results. It doesn&#8217;t seem to be looping properly at this time. Thank you. :: &#8220;Set Variables&#8221; for /f &#8220;tokens=*&#8221; %%I in (IPlist.txt) do @Set $IP=%%I @Set OutputFile=PingResults.log :: &#8220;Set Time stamp&#8221; @FOR /F &#8220;tokens=*&#8221; %%* IN (&#8216;date/t&#8217;) Do @(set [...]]]></description>
				<content:encoded><![CDATA[<p>Could someone please help me with this command to loop through the IPlist table and report results. It doesn&#8217;t seem to be looping properly at this time. Thank you.<br/><br/> :: &#8220;Set Variables&#8221; for /f &#8220;tokens=*&#8221; %%I in (IPlist.txt) do @Set $IP=%%I @Set OutputFile=PingResults.log<br/><br/> :: &#8220;Set Time stamp&#8221; @FOR /F &#8220;tokens=*&#8221; %%* IN (&#8216;date/t&#8217;) Do @(set $dt=%%*) @FOR /F &#8220;tokens=*&#8221; %%* IN (&#8216;time/t&#8217;) Do @(set $tm=%%*)<br/><br/> :: &#8220;Ping Computer&#8221; @start/b/w PING %1 -a %$IP% -n 2 -w 100&gt;&#8221;temp.txt&#8221; @FOR /F &#8220;tokens=2,3 delims= &#8221; %%A IN (%tmpFile%) DO @IF &#8220;%%B&#8221;==&#8221;[%$IP%]&#8221; SET $PC=%%A <a href="mailto:||@rem">||@rem</a><br/><br/> :: &#8220;Get Status&#8221; @Set $Status=Off-Line @IF EXIST &#8220;temp.txt&#8221; @GoTo READSTATUS @Set $Status=Ping-Error @GoTo RESULTS<br/><br/> :READSTATUS @Set errorlevel= @Type &#8220;temp.txt&#8221; | Find &#8220;TTL=&#8221; &gt;nul @IF Not errorlevel = 1 @Set $Status=On-Line<br/><br/> :RESULTS @echo results: %$dt% %$tm% %$PC%[%$IP%] ^= %$Status% &gt;&gt;&#8221;%OutputFile%&#8221;<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/looping-ping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creation of array for input of data</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/creation-of-array-for-input-of-data/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/creation-of-array-for-input-of-data/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 01:08:18 +0000</pubDate>
		<dc:creator>Rponsford</dc:creator>
				<category><![CDATA[Array]]></category>
		<category><![CDATA[LOOP statement]]></category>
		<category><![CDATA[Update records]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I am using access 07. I have created an input form (forms.Base) with an input field of source_code. Below this there are options for other fields to be updated in a record set. There would be multiple entries in the source_code field, seperated by &#8216;;&#8217;. There would be a maximum number of 10 entries [...]]]></description>
				<content:encoded><![CDATA[<p>Hi, I am using access 07. I have created an input form (forms.Base) with an input field of source_code. Below this there are options for other fields to be updated in a record set. There would be multiple entries in the source_code field, seperated by &#8216;;&#8217;. There would be a maximum number of 10 entries in this field. When the user presses submit, the table (tbl.base) would be updated with the entry in the source_code field, with each of the values inserted in the other entry fields. It would then loop until there are no more entries in the source_code field. Therefore in the dataset/table the source_code field would be populated with each different value but the other fields would be populated with the same values. Can anyone help with the required VBA code? Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/creation-of-array-for-input-of-data/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DO&#8230;LOOP and IF ELSE THEN statements</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/doloop-and-if-else-then-statements/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/doloop-and-if-else-then-statements/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 02:47:54 +0000</pubDate>
		<dc:creator>Norphes</dc:creator>
				<category><![CDATA[Accumulators]]></category>
		<category><![CDATA[Counters]]></category>
		<category><![CDATA[DO LOOP statement]]></category>
		<category><![CDATA[IF ELSE statement]]></category>
		<category><![CDATA[LOOP statement]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am writing a basic program where two types of data are added: 1. a salespersons ID and 2. an amount of cars sold within a month from that salesperson. I have found out how to set the code where the numbers will go where they need to, but adding extra ones does not work, [...]]]></description>
				<content:encoded><![CDATA[<p>I am writing a basic program where two types of data are added: 1. a salespersons ID and 2. an amount of cars sold within a month from that salesperson. I have found out how to set the code where the numbers will go where they need to, but adding extra ones does not work, and trying to add any more numbers only changes it to the number that is entered.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/doloop-and-if-else-then-statements/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Looping to create new workbooks using a set &#8220;transaction&#8221; number</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/looping-to-create-new-workbooks-using-a-set-transaction-number/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/looping-to-create-new-workbooks-using-a-set-transaction-number/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 22:49:31 +0000</pubDate>
		<dc:creator>McNitro</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Excel workbooks]]></category>
		<category><![CDATA[LOOP statement]]></category>
		<category><![CDATA[Microsoft Excel 2003]]></category>
		<category><![CDATA[Sequence number generation]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;m playing around a bit and can&#8217;t figure out why the following code does not save a total of 5 files in My Documents(default) The files should be named in a sequence of 1 &#8211; 5 (In my Excel spreadsheet (A1)=1 and (A4)=5) The code works once through, but when &#8220;.SaveAs Filename:=Start&#8221; comes back around [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m playing around a bit and can&#8217;t figure out why the following code does not save a total of 5 files in My Documents(default)</p>
<p>The files should be named in a sequence of 1 &#8211; 5 (In my Excel spreadsheet (A1)=1 and (A4)=5)</p>
<p>The code works once through, but when &#8220;.SaveAs Filename:=Start&#8221; comes back around the second time Excel asks if I want to overwrite file &#8220;1.xls&#8221; b/c it already exists.  Shouldn&#8217;t the below coding allow Excel to save the next file as &#8220;2.xls&#8221;, then &#8220;3.xls&#8221;, and so on?</p>
<p>Sub NewTest()</p>
<p>Start = Workbooks(&#8220;Loop Test.xls&#8221;).Worksheets(&#8220;Sheet1&#8243;).Range(&#8220;A1&#8243;).Value<br />
Finish = Workbooks(&#8220;Loop Test.xls&#8221;).Worksheets(&#8220;Sheet1&#8243;).Range(&#8220;A4&#8243;).Value<br />
Do Until Start = Finish<br />
    Set NewBook = Workbooks.Add<br />
    With NewBook<br />
        .SaveAs Filename:=Start<br />
        Workbooks(Start &#038; &#8220;.xls&#8221;).Close SaveChanges:=True<br />
    End With<br />
    Workbooks(&#8220;Loop Test.xls&#8221;).Worksheets(&#8220;Sheet1&#8243;).Range(&#8220;A1&#8243;).Value = Start + 1<br />
    Workbooks(&#8220;Loop Test.xls&#8221;).Save<br />
Loop<br />
End Sub</p>
<p>Interested to hear an answer.</p>
<p>Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/looping-to-create-new-workbooks-using-a-set-transaction-number/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bulk Collect vs Cursor in Oracle</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/bulk-collect-vs-cursor/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/bulk-collect-vs-cursor/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 15:38:54 +0000</pubDate>
		<dc:creator>Nikhildhar</dc:creator>
				<category><![CDATA[BULK COLLECT statement]]></category>
		<category><![CDATA[Collection Loop]]></category>
		<category><![CDATA[Cursor Loop]]></category>
		<category><![CDATA[LOOP statement]]></category>
		<category><![CDATA[Oracle Cursors]]></category>
		<category><![CDATA[Oracle development]]></category>
		<category><![CDATA[Oracle queries]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[New Answer by Michael Tidmarsh]]></description>
				<content:encoded><![CDATA[New Answer by Michael Tidmarsh]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/bulk-collect-vs-cursor/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/18 queries in 0.022 seconds using memcached
Object Caching 801/886 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-26 03:43:19 -->