See Also
You are here: Interfacing > C++ Client Interface > scdriver Namespace > Classes > CCommand Class > CCommand Methods > PrepareText Method
ContentsIndexHome
PreviousUpNext
CCommand::PrepareText Method

Prepare parametrized SQL/DQL statements

C++
public: void PrepareText(
    CConnection * conn, 
    const char * cmd
);
C#
public void PrepareText(
    CConnection * conn, 
    const char * cmd
);
Visual Basic
Public Function PrepareText(
    conn As CConnection *, 
    cmd As const char *
) As void
Parameters
Parameters 
Description 
conn 
Valid connection instance. The connection to server or embedded DB must be already established 
cmd 
SQL or DQL statement. For example: "select * from where id = @myid" is prepared SQL with a single input parameter "myid" 
Returns

If method fails, the node_exception exception, containing the error message, will be thrown