what is sql Injection?

Answers were Sorted based on User's Feedback



what is sql Injection?..

Answer / alok saxena

SQl Injection is used by hacker or professional to damage
the data through intellectaul technique. For example, in
this text box , If I write SQL statement in such a way that
effect its database. example " hi, 'delete * from emp;'

This is what We say to inject in Sql by writing DML in
textbox.

Is This Answer Correct ?    7 Yes 1 No

what is sql Injection?..

Answer / kerem kusmezer

Sql Injection is one of the input manipulation attacks,
which in case the sql statement is directly buildup from an
string concatanation, in which the user can change through
entry the result sql statement.

For Example:

select top 1 username from users where username
= '&txtusername.Text&'.
If the user enters the text with ' or -- he can add more
command to the outcoming sql statement and change the query
set.

Is This Answer Correct ?    2 Yes 0 No

what is sql Injection?..

Answer / srikant dwibedi

SQL Injection is he process of passing SQL code into an
application in a way that was not intended by the
application developer or it is a strategy for attacking
databases.

Example
An ASP page asks the user for a name and a password.
SELECT FROM users WHERE username="whatever" AND
password="mypassword".
It seems safe,but it is not. A user might enter somthing
like this 'OR 1>0....
when this is plugged into the SQL statewments the result
looks like this:
SELECT FROM users WHERE username="OR 1>0 " AND
password=" ";
This injectin comments out of the password portion of the
statement. It results in a list of all the names in the
users table. So any user could get into your system.

Is This Answer Correct ?    3 Yes 2 No

what is sql Injection?..

Answer / vinod

When a haker gives input like username = vinod@gmail.com and
password = a' or 'x' = 'x-- than user name will be accepted
and password x=x will always true so system can allow to
haker to login.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More ADO.NET Interview Questions

How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

0 Answers   CGI,


What is dbcontext and dbset in entity framework?

0 Answers  


how we can fire event in databound coulm in datagfrid withot using button?

0 Answers   Tech Mahindra,


What are the difference between readonly vs. Const?

0 Answers  


Whate are different types of Commands available with DataAdapter ?

2 Answers  


How many types of data table are in SQL.NET

4 Answers   Chetu India, HCL, MAHINDRA,


What are dcl commands?

0 Answers  


What is Serialization in .NET? what are the types of Serialization?

0 Answers   Arigo Infotech,


What is fill method in ado.net?

0 Answers  


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

0 Answers  


Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.

0 Answers  


What is ole db and odbc?

0 Answers  


Categories