Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding attributes to loaded files in-script

Hello,

I was wondering if it was possible to insert extra attributes into records when they are being loaded. The equivalent in a SQL pull would be like adding:

"TEXT" as record_type

to a select clause.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

Use the LOAD sentence to do that:

Customer:

LOAD CustID,

     CustName,

     'Customer' AS Type; // this is not in the SQL server

SQL SELECT CustID, CustName

FROM dbo.Customers;

Is that what you mean?

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi,

Use the LOAD sentence to do that:

Customer:

LOAD CustID,

     CustName,

     'Customer' AS Type; // this is not in the SQL server

SQL SELECT CustID, CustName

FROM dbo.Customers;

Is that what you mean?

Miguel

Not applicable
Author

Single quotes! Of course. Thank you Miguel.