.NET Framework Class Library  

OdbcConnection.CreateCommand Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Creates and returns an OdbcCommand object associated with the OdbcConnection.

[Visual Basic]
Public Function CreateCommand() As OdbcCommand
[C#]
public OdbcCommand CreateCommand();
[C++]
public: OdbcCommand* CreateCommand();
[JScript]
public function CreateCommand() : OdbcCommand;

Return Value

An OdbcCommand object.

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

OdbcConnection Class | OdbcConnection Members | System.Data.Odbc Namespace