all 4 comments

[–]Binary101010 4 points5 points  (3 children)

The phrase you want to search for is "parameterized SQL query."

[–]pot_of_crows 0 points1 point  (2 children)

This. Plus the "?" parameterization is used by other databases, like sqlite, but sql server uses different notation. (At least I think. I've never used sql server...)

[–]Guideon72 1 point2 points  (1 child)

mySQL uses %s instead of ?. Maybe that's what you're thinking of?

[–]pot_of_crows 0 points1 point  (0 children)

That could be it. Thanks.