Create TSQL function and use it in the etl scenario. Use Sybase app_context