RemoveCommand()
- Last UpdatedNov 25, 2015
- 1 minute read
Use the RemoveCommand() method to instruct the SQLData Script Library to remove internal references to the aaDBCommand object referenced by CommandID, release all resources used by the object, and clean up all references to the object in memory.
Syntax
void RemoveCommand(
string CommandID)
Parameters
CommandID
The unique ID, generated internally by the SQLData Script Library. For details, see GetId() on page 42.
Remarks
You must call RemoveCommand() if you previously requested CommandID. Otherwise, the memory cannot be released until the engine process is shut down.
Do not keep this command object in memory, especially when it is associated with a large dataset.