Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

OdbcCommand Constructor (String, OdbcConnection)

Initializes a new instance of the OdbcCommand class with the text of the query and an OdbcConnection object.

Namespace: System.Data.Odbc
Assembly: System.Data (in system.data.dll)

public OdbcCommand (
	string cmdText,
	OdbcConnection connection
public OdbcCommand (
	String cmdText, 
	OdbcConnection connection
public function OdbcCommand (
	cmdText : String, 
	connection : OdbcConnection



The text of the query.


An OdbcConnection object that represents the connection to a data source.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

© 2014 Microsoft. All rights reserved.