A community member has associated this post with a similar question:
UPDATE fields

Only moderators can edit this content.

OleDbCommand Parameters

StewartBW 405 Reputation points
2024-04-30T13:26:09.0033333+00:00

Hello

I'm going to use parameterized queries for all my Access OleDb commands and got 2 questions:

Use Parameters.Add or Parameters.AddWithValue? The documentation won't clarify the pros and cons of each one.

If I choose Parameters.Add how to map the data types? I mean Field Size in Access vs OleDbType for numbers, or Memo which is long string and has no OleDbType equivalent.

Thanks.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,591 questions
0 comments No comments
{count} votes