Advertisement

07.07.2008 at 06:48AM PDT, ID: 23543311
[x]
Attachment Details

What is the code to avoid SQL Injection

Asked by heart_mib in .Net Editors & IDEs, MS SQL Server, Microsoft Visual Basic.Net

Tags: VB.NET

Hello,

what is the code used to avoid SQL Injections.
I've done this in the past, but I forgot how to. Can you please provide all necessary details and how to avoid the sql injections.

I have SQL Server 2000, and I have several data types in my database. let's say I have several text boxes like below:
1) txtName
2) txtEmail
3) txtPhone
4) txtAge

How can I make sure that people using my web page won't cause an SQL Injection.

Also, what can I do if I'm reading a query string, can somebody cause an SQL injection in the link, and how to avoid it?

I'm a programmer so feel free to talk technically if you have an idea.
ThanksStart Free Trial
 
 
Loading Advertisement...
 
[+][-]07.07.2008 at 06:51AM PDT, ID: 21944974

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 06:54AM PDT, ID: 21945006

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 06:56AM PDT, ID: 21945026

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, MS SQL Server, Microsoft Visual Basic.Net
Tags: VB.NET
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.07.2008 at 07:02AM PDT, ID: 21945082

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.07.2008 at 07:05AM PDT, ID: 21945113

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 07:06AM PDT, ID: 21945116

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 07:07AM PDT, ID: 21945132

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 07:11AM PDT, ID: 21945158

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 07:24AM PDT, ID: 21945262

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628