What is SQL injection?

Answers were Sorted based on User's Feedback



What is SQL injection?..

Answer / p.ramakrishna

An SQL injection attack "injects" or manipulates SQL code
by adding unexpected SQL to a query.
Many web pages take parameters from web user, and make SQL
query to the database. Take for instance when a user login,
web page that user name and password and make SQL query to
the database to check if a user has valid name and password.
Username: ' or 1=1 ---
Password: [Empty]
This would execute the following query against the users
table:
select count(*) from users where userName='' or 1=1 --' and
userPass=''

Is This Answer Correct ?    5 Yes 1 No

What is SQL injection?..

Answer / sathya s.d.

using sql query in a login id and password and automaticaly
login by verifying raw query with database..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Differentiate between structure and class.

0 Answers  


Explain the purpose of storyboard.targetproperty.

0 Answers  


What are the objects in used in ASP for processing input and outputs?

1 Answers  


What are the type of session in Asp.Net

3 Answers  


What is the main function of razor in asp.net? : asp.net mvc

1 Answers  






what are Httpmodule and HttpHandler?

3 Answers   Microsoft, Wipro,


In which module you have worked in your .net project explain?

1 Answers   TechSolution,


What is the current version of asp.net?

0 Answers  


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

0 Answers   HCL,


What is the use of placeholder control? Can we see it at runtime?

0 Answers  


How do you do Client-side validation in .Net?

0 Answers  


What is considered a service provider?

0 Answers  


Categories