API:Datasnap.DSCommonServer.TDSServerConnection.CreateCommand

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.DSCommonServer.pas
Datasnap.DSCommonServer.hpp
Unit: Datasnap.DSCommonServer
Parent: TDSServerConnection

Delphi

function CreateCommand: TDBXCommand; override;

C++

virtual Data::Dbxcommon::TDBXCommand* __fastcall CreateCommand()/* overload */;

Description

Returns a TDBXCommand instance to execute commands.

Datasnap.DSCommonServer.TDSServerConnection.CreateCommand inherits from Data.DBXCommon.TDBXConnection.CreateCommand. All content below this line refers to Data.DBXCommon.TDBXConnection.CreateCommand.

Returns a TDBXCommand instance to execute commands.

This method returns a TDBXCommand instance to execute commands. The TDBXCommand.CommandType property specifies the type of command. Command types are specified in the TDBXCommandTypes class. The default CommandType property setting is TDBXCommandTypes.SQLStatement., an SQL command.

Note: Call TDBXCommand.Free when the TDBXCommand is no longer needed.

See Also