<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.onqpr.com/pa/index.php?action=history&amp;feed=atom&amp;title=ImportOleDbQuery_Script_Examples</id>
	<title>ImportOleDbQuery Script Examples - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.onqpr.com/pa/index.php?action=history&amp;feed=atom&amp;title=ImportOleDbQuery_Script_Examples"/>
	<link rel="alternate" type="text/html" href="https://wiki.onqpr.com/pa/index.php?title=ImportOleDbQuery_Script_Examples&amp;action=history"/>
	<updated>2026-04-21T08:59:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://wiki.onqpr.com/pa/index.php?title=ImportOleDbQuery_Script_Examples&amp;diff=19235&amp;oldid=prev</id>
		<title>Ollvihe at 20:47, 25 October 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.onqpr.com/pa/index.php?title=ImportOleDbQuery_Script_Examples&amp;diff=19235&amp;oldid=prev"/>
		<updated>2021-10-25T20:47:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:47, 25 October 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page contains script examples for the [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QPR ProcessAnalyzer &lt;/del&gt;Scripting Commands#--.23ImportOleDbQuery|ImportOleDbQuery]] script command.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page contains script examples for the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SQL &lt;/ins&gt;Scripting Commands#--.23ImportOleDbQuery|ImportOleDbQuery]] script command.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example will load data from an OLE DB source (a sample database called DB1) and selects all columns from the table EXAMPLE. It will then put that data into the &amp;quot;#TABLE&amp;quot; temporary table and then show the contents of that table.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example will load data from an OLE DB source (a sample database called DB1) and selects all columns from the table EXAMPLE. It will then put that data into the &amp;quot;#TABLE&amp;quot; temporary table and then show the contents of that table.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ollvihe</name></author>
	</entry>
	<entry>
		<id>https://wiki.onqpr.com/pa/index.php?title=ImportOleDbQuery_Script_Examples&amp;diff=8551&amp;oldid=prev</id>
		<title>Ollvihe at 07:06, 7 February 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.onqpr.com/pa/index.php?title=ImportOleDbQuery_Script_Examples&amp;diff=8551&amp;oldid=prev"/>
		<updated>2018-02-07T07:06:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:06, 7 February 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page contains script examples for the [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Supported_QPR_ProcessAnalyzer_Commands_in_Scripts&lt;/del&gt;#--.23ImportOleDbQuery|ImportOleDbQuery]] script command.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page contains script examples for the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QPR ProcessAnalyzer Scripting Commands&lt;/ins&gt;#--.23ImportOleDbQuery|ImportOleDbQuery]] script command.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example will load data from an OLE DB source (a sample database called DB1) and selects all columns from the table EXAMPLE. It will then put that data into the &amp;quot;#TABLE&amp;quot; temporary table and then show the contents of that table.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example will load data from an OLE DB source (a sample database called DB1) and selects all columns from the table EXAMPLE. It will then put that data into the &amp;quot;#TABLE&amp;quot; temporary table and then show the contents of that table.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ollvihe</name></author>
	</entry>
	<entry>
		<id>https://wiki.onqpr.com/pa/index.php?title=ImportOleDbQuery_Script_Examples&amp;diff=2894&amp;oldid=prev</id>
		<title>TeeHiet: 403051</title>
		<link rel="alternate" type="text/html" href="https://wiki.onqpr.com/pa/index.php?title=ImportOleDbQuery_Script_Examples&amp;diff=2894&amp;oldid=prev"/>
		<updated>2016-06-20T07:49:58Z</updated>

		<summary type="html">&lt;p&gt;403051&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page contains script examples for the [[Supported_QPR_ProcessAnalyzer_Commands_in_Scripts#--.23ImportOleDbQuery|ImportOleDbQuery]] script command.&lt;br /&gt;
&lt;br /&gt;
The following example will load data from an OLE DB source (a sample database called DB1) and selects all columns from the table EXAMPLE. It will then put that data into the &amp;quot;#TABLE&amp;quot; temporary table and then show the contents of that table.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(SELECT &amp;#039;OleDbConnectionString&amp;#039;, &amp;#039;Provider=SQLOLEDB;Data Source=(local);Initial Catalog=DB1;Integrated Security=SSPI;&amp;#039;) UNION ALL&lt;br /&gt;
(SELECT &amp;#039;OleDbQueryString&amp;#039;, &amp;#039;SELECT * FROM EXAMPLE&amp;#039;) UNION ALL&lt;br /&gt;
(SELECT &amp;#039;TargetTable&amp;#039;, &amp;#039;#TABLE&amp;#039;) UNION ALL&lt;br /&gt;
(SELECT &amp;#039;Append&amp;#039;, &amp;#039;1&amp;#039;)&lt;br /&gt;
--#ImportOleDbQuery&lt;br /&gt;
&lt;br /&gt;
(SELECT * FROM #TABLE) UNION ALL&lt;br /&gt;
(SELECT &amp;#039;MaximumCount&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
--#ShowReport&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following example will load all the columns from &amp;quot;EXAMPLE&amp;quot; table from an OLE DB source and will put that data into the &amp;quot;ExampleDataTable&amp;quot; in the &amp;quot;ExampleProject&amp;quot; project. It will then get the Data Table analysis from the &amp;quot;ExampleDataTable&amp;quot;, put that into the &amp;quot;#TABLE&amp;quot; temporary table and then show the contents of that table. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(SELECT &amp;#039;ProjectName&amp;#039;, &amp;#039;ExampleProject&amp;#039;) UNION ALL &lt;br /&gt;
(SELECT &amp;#039;DataTableName&amp;#039;, &amp;#039;ExampleDataTable&amp;#039;) UNION ALL &lt;br /&gt;
(SELECT &amp;#039;Append&amp;#039;, &amp;#039;0&amp;#039;) UNION ALL &lt;br /&gt;
(SELECT &amp;#039;OleDbConnectionString&amp;#039;, &amp;#039;Provider=SQLOLEDB;Data Source=(local);Initial Catalog=DB1;Integrated Security=SSPI;&amp;#039;) UNION ALL &lt;br /&gt;
(SELECT &amp;#039;OleDbQueryString&amp;#039;, &amp;#039;SELECT * FROM EXAMPLE&amp;#039;) &lt;br /&gt;
--#ImportOleDbQuery&lt;br /&gt;
&lt;br /&gt;
(SELECT &amp;#039;AnalysisType&amp;#039;, &amp;#039;18&amp;#039;) UNION ALL&lt;br /&gt;
(SELECT &amp;#039;ProjectName&amp;#039;, &amp;#039;ExampleProject&amp;#039;) UNION ALL &lt;br /&gt;
(SELECT &amp;#039;MaximumCount&amp;#039;, &amp;#039;0&amp;#039;) UNION ALL &lt;br /&gt;
(SELECT &amp;#039;DataTableName&amp;#039;, &amp;#039;ExampleDataTable&amp;#039;) UNION ALL &lt;br /&gt;
(SELECT &amp;#039;TargetTable&amp;#039;, &amp;#039;#TABLE&amp;#039;) &lt;br /&gt;
--#GetAnalysis &lt;br /&gt;
&lt;br /&gt;
(SELECT * FROM #TABLE) &lt;br /&gt;
(SELECT &amp;#039;MaximumCount&amp;#039;, &amp;#039;0&amp;#039;) &lt;br /&gt;
--#ShowReport &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Examples]]&lt;/div&gt;</summary>
		<author><name>TeeHiet</name></author>
	</entry>
</feed>