PrepAway - Latest Free Exam Questions & Answers

What should you do to ensure that the application executes the parameterized queries?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET.

The application uses Microsoft OLE DB Provider as the data provider. You change the data provider to Microsoft SqlClient. The application throws errors while executing parameterized queries.

You need to ensure that the application executes the parameterized queries.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Change the parameter in the query from DBNull to Null.

B.
Reorder the positional parameters in the application code.

C.
Set the Unicode attribute in the connection string to True.

D.
Change the positional parameters in the application code to named parameters.


Leave a Reply