OleDbType Property

OleDbParameter.OleDbType Property

Gets or sets the OleDbType of the parameter.

[Visual Basic]
Public Property OleDbType As OleDbType
[C#]
public OleDbType OleDbType {get; set;}
[C++]
public: __property OleDbType get_OleDbType();
public: __property void set_OleDbType(OleDbType);
[JScript]
public function get OleDbType() : OleDbType;
public function set OleDbType(OleDbType);

Property Value

The OleDbType of the parameter. The default is VarWChar

Remarks

The OleDbType and DbType are linked. Therefore, setting the DbType changes the OleDbType to a supporting OleDbType.

For a list of the supported data types, see the appropriate OleDbType member. For more information, see Using Parameters with a DataAdapter.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OleDbParameter Class | OleDbParameter Members | System.Data.OleDb Namespace

Show:
© 2016 Microsoft