| Home | How To | Online Documentation | Support | Download | Order |
|
|
SAParam& CreateParam(
const SAString &sName,
SADataType_t eParamType,
int nNativeType,
int nParamSize,
int nParamPrecision,
int nParamScale,
SAParamDirType_t eDirType ); Creates parameter associated with the specified command. ParameterssName. A string representing the name of parameter. ePatamType. Type of the parameter's value. eParamType can have one of the following values from SADataType_t enum:
nNativeType. An integer value representes a code of server-specific data type, if known. Otherwise, -1 . nParamSize. An integer value represents parameter's value size. nParamPrecision. An integer value represents parameter's value precision. nParamScale. An integer value represents parameter's value scale. eDirType. Type of the parameter. eDirType can have one of the following values from SAParamDirType_t enum:
Return valueA reference to a SAParam object. RemarksNormally you should not create parameters by yourself. The Library automatically detects whether the command has parameters in terms of the command text and implicitly creates a set of SAParam objects. Nevertheless, if you call CreateParam explicitly you have to delete all SAParam objects created automatically by the Library before. Use SACommand::DestroyParams method before the first call of CreateParam method. Server specific notesNo specific information. See alsoDestroyParams, CommandText, setCommandText, CommandType SAParam, SADataType_t, SAParamDirType_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. |
||||||||||||||||||