Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMSSqlRow with table name to define

Hi,

I would like to create a table under MS Sqlserver with a fixed name like :  customer+context.value

My context value is the category of context : int, dev, rec, prd

I've try

 

"select * into customer \""+context.value+"\" from customer"

This will create customerint like customer.

Thank you for your help i'm a little bit lost with simple and/or double quotes.

0683p000009MA9p.png

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

Don't work.

I'm trying to copy the table customer to a cutomerDev table

like this :  select * into customer"+context.Dev+" from customer" ;

 

but there is something wrong in my request with the context Var

I've tried : select * into customer \""+context.Dev+"\"  from customer" ;  but it don't work

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Can you please describe more about what you want?

Anonymous
Not applicable
Author

As i said in the post, i would like to do : For exemple a table name like "customer" and information from my active environment context : exeample : Context Env = dev (for development

select * from customer+context Env  dynamically => select * form customerDev  

 

akumar2301
Specialist II
Specialist II

Hello 

 

"select * form customer" + contextStr

Anonymous
Not applicable
Author

Hi

The environment context should be selected before the job execution, however, the value of context variable could be changed at run time.


Regards

Shong
Anonymous
Not applicable
Author

Hi,

Don't work.

I'm trying to copy the table customer to a cutomerDev table

like this :  select * into customer"+context.Dev+" from customer" ;

 

but there is something wrong in my request with the context Var

I've tried : select * into customer \""+context.Dev+"\"  from customer" ;  but it don't work

Anonymous
Not applicable
Author

It works fine now, sometimes to mutch quote kills the request. Then I just modify with

"select * into customer\"+context.Dev+\""