on 11-09-2016 4:42 PM
SELECT @errorCode = 1 , @errorMsg = @errorMsg + @Delimiter + 'Missing Date Processed'
FROM #tblStaging
WHERE NULLIF(DateProcessed,'') IS NULL
Above the SQL Statement How to use in Query Transform in DI?
If this is connecting to a database table, you can use this in SQL transform as a source.
Thanks,
Denise
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The above statement is using a Temporary table in SQL Server. only physical tables can be accessed in Query transform. I have never tried with accessing Temporary tables in datastore and then using it in Query Transform.
You may try using the above SQL in SQl transform.
As Dirk mentioned you can try the mapping.
Regards
Arun Sasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Query transform:
Map 1 to errorCode
Map errorMsg || Delimiter || 'Missing Date Processed' to errorMsg
And put nvl(DateProcessed,'') = '' in the Where-clause
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.