Home How To Online Documentation Support Download Order
 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SACommand::CommandType

SACommandType_t  CommandType();

Gets the command type currently associated with the SACommand object.

Return value

One of the following values from SACommandType_t enum:

  • SA_CmdUnknown     Command type is not defined. Library will detect command type automatically when needed.
  • SA_CmdSQLStmt    Command is an SQL statement.
  • SA_CmdSQLStmtRaw    Command is an SQL statement that mustn't be interpreted by SQLAPI++.
  • SA_CmdStoredProc    Command is a stored procedure or a function.

Remarks

The command type can be explicitly set in SACommand constructor and setCommandText method, but it's not necessary to do it. 

The CommandTypemethod returns the command type value that was specified in SACommand constructor or setCommandText method. If you declared the command type value as SA_CmdUnknown (the default value) then command type is detected by the Library and the CommandType method returns this detected value.

Server specific notes

No specific information.

See also

setCommandText, CommandText

SACommandType_t

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.