Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
1.25/5 (4 votes)
See more:
How can I protect against SQL injection?
Posted

Use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters.

Sql Injection
Some more info
 
Share this answer
 
v2
Comments
Tom Marvolo Riddle 6-Sep-13 8:42am    
@Christopher Kenis :Impossible-No.Just we reduce the risk of being attacked
I agree with Jas24's comment to this answer[^]. And your question reminds me of this CP article. Security: It’s Getting Worse[^]

Answer for your question
Tip/Trick: Guard Against SQL Injection Attacks[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900