Executes a command that doesn't return any data. The result returns the number of records affected or -1 on error.