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

Execute SQL or DQL command. The command will set affected rows and receive the new values for the output parameter(s).

C++
public: void Execute(
    const char * cmd, 
    byte * _recv = 0, 
    const int _irecv = 8192
);
C#
public void Execute(
    const char * cmd, 
    byte * _recv, 
    const int _irecv
);
Visual Basic
Public Function Execute(
    cmd As const char *, 
    _recv As byte * = 0, 
    _irecv As const int = 8192
) As void
Parameters
Parameters 
Description 
cmd 
SQL or DQL statement. By default, database interpret text as SQL, unless, SetLanguage function had set it to DQL. 
_recv 
Reserved for internal use. 
_irecv 
Reserved for internal use. 
Returns

If server sends back to the client the error, node_exception exception with the error message, will be thrown