Dude, relax. I was just pointing out that there's not enough information in the original post to know what kind of query it is.
If it is an update/delete, the variable is useless, if it's a select, it's not.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP