Execute Method Example (VC++)

This example uses a Data control to execute an action query that updates all titles that have no value in the ISBN column in the Titles table. If there is an error, all changes are rolled back.

CString strSQL = _T("DELETE FROM Titles WHERE ISBN IS NULL");
dbsBiblio.Execute( strSQL, dbFailOnError );