How can I avoid SQL injection attacks in my ASP.NET application?

前端 未结 16 2106
死守一世寂寞
死守一世寂寞 2020-11-27 20:16

I need to avoid being vulnerable to SQL injection in my ASP.NET application. How might I accomplish this?

16条回答
  •  醉话见心
    2020-11-27 20:49

    Try to use Stored Procedures, and validate the input on your data. Do not use any direct SQL like INSERT INTO ...

提交回复
热议问题