okay, stored procedure compile time parameters aren't in the execution plan. there's no optimize for unknown hint, there are no local variables in use, and parameter sniffing is not turned off as a database scoped configuration. is there anything else that would mess that up?
I think that's why I thought it was a stored procedure
What makes them parameters then?
StatementParameterizationType = 1 but I'm missing the mechanism for that
There's also spatial stuff, openjson, and indexed views. Attempting use all known technologies at once?