DRAG DROP
You have table named Employee that has two columns named firstName and lastName.
You need to insert synchronously the first and last name of an employee into the Employee table.
Which five code segments should you use? Develop the solution by selecting and arranging the required code segments in the correct order.
NOTE: You will not need all of the code segments.
Select and Place:
1. using…
2. connection.Open..
3. Sqlcommand command =…
4. command.Parameters..
5. command.ExecuteNonQuery..
Correct
6
5
4
3
1
There is no any other way possible.
I think that “SqlComand command = new SqlCommand(sql, connection)” should be in 4 position.