Using TransactSQL in the etl scenario