- Posts: 291
- Thank you received: 8
How can i use Variable?
1 year 5 months ago - 1 year 5 months ago #21754
by Bozik
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
How can i use Variable? was created by Bozik
Hi,
it is possible to use a local variable <username> as field in the record?
thx
Peter
it is possible to use a local variable <username> as field in the record?
thx
Peter
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Last edit: 1 year 5 months ago by Bozik.
Please Log in or Create an account to join the conversation.
1 year 5 months ago #21755
by admin
Mike
ETL Architect
Replied by admin on topic How can i use Variable?
yes it is possible
Here is the list of supported variables
<ATEUserName>
<username> OS user name
<computername>
<datetime>
www.etl-tools.com/wiki/ate/options
Here is the list of supported variables
<ATEUserName>
<username> OS user name
<computername>
<datetime>
www.etl-tools.com/wiki/ate/options
Mike
ETL Architect
The following user(s) said Thank You: Bozik
Please Log in or Create an account to join the conversation.
1 year 5 months ago #21756
by Bozik
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Replied by Bozik on topic How can i use Variable?
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Please Log in or Create an account to join the conversation.
1 year 5 months ago #21757
by admin
Mike
ETL Architect
Replied by admin on topic How can i use Variable?
SQL should be a simple select statement:
EG select * from the table.
In your case, it is a script
EG select * from the table.
In your case, it is a script
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
1 year 5 months ago #21758
by Bozik
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Replied by Bozik on topic How can i use Variable?
aha .. but that's how it works :silly:
Code:
SET @iUser = 'TEST';
SET @result = lmxdatsk.fRegisterOrder(@iUser);
SELECT @result AS IdOrder;
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Please Log in or Create an account to join the conversation.
1 year 5 months ago #21759
by Bozik
The same error when I use a simple query with a variable ..
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Replied by Bozik on topic How can i use Variable?
SQL should be a simple select statement:
EG select * from the table.
The same error when I use a simple query with a variable ..
Code:
SELECT * from md_orders Where createdby = <ATEUserName>;
Peter
Product: Visual Importer Enterprise & Active Table Editor
Repository: Microsoft SQL Server - 11.0.2100.60
Windows: Server 2012 Standart 64Bit
Please Log in or Create an account to join the conversation.