<?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>topic Stored Procedure for spreadsheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247230#M94184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply DV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a store procedure at the minute but Im trying to use that stored procedure to read in from a spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to read the Table name from the spreadsheet then the procedure will search for them in the database and take the selected fields from the spreadsheet and store that with the QVDFileName associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using Oracle database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connectionstring= 172###########&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spreadsheet:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TABLENAME,&lt;/P&gt;&lt;P&gt;FIELDLIST,&lt;/P&gt;&lt;P&gt;QVDFILENAME&lt;/P&gt;&lt;P&gt;From$(Data_Path)Spreadsheet.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Procedure&lt;/P&gt;&lt;P&gt;sub Load_Table($(TABLENAME), $(FIELDLIST), $(QVDFILENAME))&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident Spreadsheet;&lt;/P&gt;&lt;P&gt;$(TABLENAME):&lt;/P&gt;&lt;P&gt;SQL SELECT $(FIELDLIST)&lt;/P&gt;&lt;P&gt;FROM $(TABLENAME)&lt;/P&gt;&lt;P&gt;STORE $(TABLENAME) into $(Data_Path)$(QVDFILENAME);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call sub Load_Table($(TABLENAME), $(FIELDLIST), $(QVDFILENAME);&lt;/P&gt;&lt;P&gt;end sub;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But I just cant get it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2011 16:51:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-27T16:51:45Z</dc:date>
    <item>
      <title>Stored Procedure for spreadsheet</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247228#M94182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing a stored procedure to take a data from a spreadsheet and use it to create QVD's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done is created a spreadsheet Column 1 - Table name 2 - Field List 3- QVD name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I would read the data from this spreadsheet into my procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mckay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 13:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247228#M94182</guid>
      <dc:creator />
      <dc:date>2011-05-27T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure for spreadsheet</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247229#M94183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Do you want SQL Syntax or Qlikview Load Script to read the stored procedure? What flavour of SQL are you using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Cheers - &lt;STRONG&gt;DV&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 15:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247229#M94183</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-27T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Stored Procedure for spreadsheet</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247230#M94184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply DV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a store procedure at the minute but Im trying to use that stored procedure to read in from a spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to read the Table name from the spreadsheet then the procedure will search for them in the database and take the selected fields from the spreadsheet and store that with the QVDFileName associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using Oracle database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connectionstring= 172###########&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spreadsheet:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TABLENAME,&lt;/P&gt;&lt;P&gt;FIELDLIST,&lt;/P&gt;&lt;P&gt;QVDFILENAME&lt;/P&gt;&lt;P&gt;From$(Data_Path)Spreadsheet.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Procedure&lt;/P&gt;&lt;P&gt;sub Load_Table($(TABLENAME), $(FIELDLIST), $(QVDFILENAME))&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident Spreadsheet;&lt;/P&gt;&lt;P&gt;$(TABLENAME):&lt;/P&gt;&lt;P&gt;SQL SELECT $(FIELDLIST)&lt;/P&gt;&lt;P&gt;FROM $(TABLENAME)&lt;/P&gt;&lt;P&gt;STORE $(TABLENAME) into $(Data_Path)$(QVDFILENAME);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call sub Load_Table($(TABLENAME), $(FIELDLIST), $(QVDFILENAME);&lt;/P&gt;&lt;P&gt;end sub;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But I just cant get it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 16:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247230#M94184</guid>
      <dc:creator />
      <dc:date>2011-05-27T16:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stored Procedure for spreadsheet</title>
      <link>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247231#M94185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To Read the Table Name from the spreadsheet, or a list of fields, you need to create a connection via ODBC to the Excel File, then execute the SQLTables; command, which will give you a list of Tables and some attributes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQLColumns; will give you a list of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, use Disconnect or simply place the new connection string to the SQL DataBase (which will in turn disconnect the previous connection) and execute the store procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 16:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stored-Procedure-for-spreadsheet/m-p/247231#M94185</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2011-05-27T16:58:11Z</dc:date>
    </item>
  </channel>
</rss>

