I need to avoid being vulnerable to SQL injection in my ASP.NET application. How might I accomplish this?
Everyone says "Use parameters". We'd have to say it less if it wasn't so perversely difficult.
Use QueryFirst. The temptation to concatenate is removed, and the right way becomes the easiest way. You create a parameter just by typing @myParam in your SQL, the tool does the rest.
disclaimer: I wrote QueryFirst