Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more: , +
I need to know the best way to insert,update,delete into sql using Asp.net without happening injection into sql and if there is a lot of data ?

help me
Posted
Updated 4-Dec-11 2:20am
v3

 
Share this answer
 
Comments
Monjurul Habib 4-Dec-11 15:15pm    
my 5! for the links
Abhinav S 5-Dec-11 0:03am    
Thank you.
Use stored procedure in SQL. In case you are using CommandText, always use parameters and do not concat textboxes or string values.

Best links for you:

http://searchsqlserver.techtarget.com/tip/Examples-of-SQL-Server-stored-procedures-and-parameters[^]

http://msdn.microsoft.com/en-us/library/ms345415.aspx[^]

Best regards,
Eduard
 
Share this answer
 
v2
Comments
Abhinav S 4-Dec-11 7:26am    
Good answer. 5.
[no name] 4-Dec-11 20:26pm    
thanks
Monjurul Habib 4-Dec-11 15:15pm    
my 5! for the links
[no name] 4-Dec-11 20:26pm    
thanks
The method I use is Parameters. There's a tutorial on CodeProject at Using SQLParameters with VB.NET/C#[^].
 
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