Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi
I am trying to run a sql query in qlikview where in i am creating a temporary table #temp_table
then updating this table with different parameters and conditions
and then select * from #temp_table
script runs fine in sql but in qlikview script is running fine and no data is loaded
regards
peter
[CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=True;User ID=sa;Initial Catalog=DATABASE;Data Source=SRV;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=PC1;Use Encryption for Data=False;Tag with column collation when possible=False]
sql
use Database
set nocount on
create table tmp_booking_leg
(book_no char(16),
carrier_id char(04),
book_date datetime,
leg_no smallint,
voyage_desc varchar(50) null,
load_port_id char(05) null,
discharge_port_id char(05) null,
etd_date datetime,
eta_date datetime,
load_agency_id char(03),
prev_eta_date datetime null,
days smallint,
maincarriage_leg_no smallint null,
maincarriage_voyage_desc varchar(50) null,
maincarriage_service_id char(04) null
)]
hi
this query is running fine in sql server but not in qlikview
ok
but i have done this where the data is inserted in to the microsoft access database
ok
how can i create a temporary table in qlikview and update that table with data from different tables
QVTable1:Load *;SQL Select A, B, C from table1 ;
Now you can use this table anywhere in Script using Resident:
QVTable2:Load A, B, (C+10) as DResident QVTable1;
Even operations like join, concatenate and alll are possible betweeen different tables loaded in qlikview. Refer the help document for more details.
Why do you need to run all this in QV? I'd suggest creating a stored procedure that loads parameters and values into temps, and do the select .