I am trying to use the ForEach SMO Enumerator to loop through all the databases on a server. This works but I need to filter the databases to exclude certain ones like Master, MSDB etc..
I have the logic already written in TSQL and there all I do is use a cursor and say where name not like (master, msdb etc....) How do I model this in SSIS?
I think I need to filter the loop using an expression but I'm not 100% what the expression needs to be.