Input parameter use - ADO.NET

Q.  When would you typically use an Input parameter?

1. When the parameter value is created based on user input
2. When the parameter is used to send data from the application to the database
3. When the command is set to execute a statement with a WHERE clause
4. When the parameter value is passed to an INSERT statement

- Published on 19 Oct 15

a. 1, 2
b. 1, 2, 3
c. 2, 3
d. 1, 4

ANSWER: 2, 3
 
Input parameter is used to send data from the application to the database. You can also use input parameter in where clause. By default the parameter direction is input type. Parameters are created by using Parameter class.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)