<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to run sql query on excel workbook? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-run-sql-query-on-excel-workbook/qaa-p/12478375#M4674887</link>
    <description>&lt;P&gt;Hello Bhushan,&lt;/P&gt;&lt;P&gt;I am using Execute Macro feature in IRPA Excel SDK. And I keep all macros in a separated excel file. It allows me having all programming code separated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 13:17:24 GMT</pubDate>
    <dc:creator>janv7306</dc:creator>
    <dc:date>2022-03-22T13:17:24Z</dc:date>
    <item>
      <title>How to run sql query on excel workbook?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-run-sql-query-on-excel-workbook/qaq-p/12478374</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;How do we run SQL query on excel workbook in iRPA cloud studio.&lt;/P&gt;
  &lt;P&gt;Tried imitating this &lt;A href="https://blogs.sap.com/2020/02/05/how-to-read-data-from-worksheet-using-query/comment-page-1/#comment-616521"&gt;blog post&lt;/A&gt; which is meant for desktop studio with a little modification in code.&lt;/P&gt;
  &lt;P&gt;The following error is thrown. "ActiveXObject is not defined".&lt;/P&gt;
  &lt;P&gt;Please suggest if there is any solution.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;        var cn = new ActiveXObject("ADODB.Connection");
 	var strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source = 'C:\\Users\\Administrator\\Downloads\\abc.xlsx';Extended Properties='Excel 12.0;HDR=Yes'";
	cn.Open(strConn);
	var rs = new ActiveXObject("ADODB.Recordset");
	var SQL = "select * from [Sheet1$] where [Group Indicator] is not null";
	rs.Open(SQL, cn);
	var index=0;
	 while(rs.EOF != true){
		rs.MoveNext();
		index++;
         }
	rs.Close();
	cn.Close();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-run-sql-query-on-excel-workbook/qaq-p/12478374</guid>
      <dc:creator>S0024009236</dc:creator>
      <dc:date>2022-03-22T13:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to run sql query on excel workbook?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-run-sql-query-on-excel-workbook/qaa-p/12478375#M4674887</link>
      <description>&lt;P&gt;Hello Bhushan,&lt;/P&gt;&lt;P&gt;I am using Execute Macro feature in IRPA Excel SDK. And I keep all macros in a separated excel file. It allows me having all programming code separated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-run-sql-query-on-excel-workbook/qaa-p/12478375#M4674887</guid>
      <dc:creator>janv7306</dc:creator>
      <dc:date>2022-03-22T13:17:24Z</dc:date>
    </item>
  </channel>
</rss>

