A. Incorrect. The .NET Framework data type in your application that the parameter represents is not the correct type for the SqlParameter.SqlDbType property.
B. Correct. It is the type of column or data in SQL Server that the command expects.
C. Incorrect. The type of column in a DataTable that it represents is only a valid data type for the application.
D. Incorrect. All types defined in the SqlDbDataType enumeration correspond to the SQL Server types, but you must pick the correct one for your parameter.
Was this article helpful?