Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS package - dynamic query, how to set database name dynamic ?

$
0
0

Hi below is my query - need to set up dynamic values for the below in SSIS package:

for SIT it should be SIT, UAT it should be UAT and PROD should be PROD. How can Iachieve this in SSIS package ?

select t2.USER_,T5.NetWorkAlias, T5.Name,T5.Company,t5.ENABLE,T1.AOTNAME, t1.NAME RoleName,
         T4.CREATEDBY, T4.CREATEDDateTime, T6.SUPERVISOR, T3.DATAAREA RoleLegalEntity
              from  AX_UAT_model.dbo.SECURITYROLE T1
       join AX_UAT.dbo.SECURITYUSERROLE T2
              on T1.recid = T2.SECURITYROLE
       left outer join AX_UAT.dbo.SECURITYUSERROLECONDITION T3
              on t3.SECURITYUSERROLE = t2.RECID
       join SYSUSERINFO T4
              on T2.USER_ = T4.Id
       join UserInfo T5
              on T5.Id = T4.Id
       left outer join BSRSUPERVISOR T6
              on T6.USERINFO = T5.Id
order by t2.user_


MBH


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>