I'm having trouble getting the syntax for a like statemetn to use paremeters in a macro. I can't get the paremeters to work. Can anyone se what I'm missing?
replace macro MACRO_DB.CollStatsPT_M (DBname Char (50), indicator Char (12))
as
(
SELECT databasename, tablename
'FROM
DBC.Tables
WHERE
DatabaseName like any ('%:indicator%','Bname')
ORDER By databasename, tablename