ADO.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 208 Page Views: 

How do you protect your code against SqlInjection attacks?



Posted By: Avi Date: 13 October 2010 11:57:47 AM
 Answer:

Use command parameters for sql query


Posted By: avibtech


Date: 13 October 2010 11:57:47 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 8dfSwM
Related Questions
ADO.Net : Explain Connection String used in ADO.Net?

Explain Connection String used in ADO.Net?

When .Net application connects to a database or a data file, ADO.Net uses a connection provider spec....
Category: ADO.Net Date: 12/2/2009 12:04:03 AM
ADO.Net : What is the use of command objects?

What is the use of command objects?

This object represents an SQL statement that is executed while connected to the database. Following ....
Category: ADO.Net Date: 10/15/2009 5:03:07 AM
ADO.Net : What are the various methods provided by the dataset object to generate XML?

What are the various methods provided by the dataset object to generate XML?

DataSet object provides following methods to generate XML: 1) ReadXML Reads a XML schema and data i....
Category: ADO.Net Date: 10/8/2009 3:49:37 AM
ADO.Net : Explain the various steps involved to fill a dataset?

Explain the various steps involved to fill a dataset?

Step-1: Open the database connection by creating a Connection object. We can load the connection str....
Category: ADO.Net Date: 10/8/2009 3:16:53 AM
ADO.Net : What is the difference between DataSet.Clone() and DataSet.Copy() methods?

What is the difference between DataSet.Clone() and DataSet.Copy() methods?

DataSet.Clone(): It only copies structure, does not copy data. DataSet.Copy(): Copies both structur....
Category: ADO.Net Date: 10/6/2009 6:37:58 AM