Export (0) Print
Expand All

ODBCConnection.CommandText property

Returns or sets the command string for the specified data source. Read/write Object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Object CommandText { get; set; }

Property value

Type: System.Object

You should use the CommandText property instead of the SQL property, which now exists primarily for compatibility with earlier versions of Microsoft Excel. If you use both properties, the CommandText property's value takes precedence.

The CommandType property describes the value of the CommandText property.

Community Additions

© 2014 Microsoft