| Home | How To | Online Documentation | Support | Download | Order |
|
|
void setCommandText( const SAString
&sCmd , SACommandType_t eCmdType = SA_CmdUnknown ); Sets the command text. ParameterssCmd. A SAString object represents command text string (an SQL statement or a stored procedure name). eCmdType. Type of a command. eCmdType parameter can have one of the following values from SACommandType_t enum:
RemarksUse setCommandText method to set the command text. Command text can also be set in SACommand constructor . It's not necessary to set a command type explicitly, because it is defined automatically in terms of command text string. But if you still have any reason to do it, use one of the SACommandType_tconstants. To get command type use CommandType method. If the command is an SQL statement and it has parameters, a set of SAParameter objects creates implicitly. Server specific notesNo specific information. See alsoSAString, SAParam, SACommandType_t Problems and QuestionsIf 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. |
||||||||||||||||||