Accessing database with ADO

In order to access database, first generate Proud.CAdoConnection object and use Open method. Only then query can be passed to database by Proud.CAdoConnection.Execute.

void Foo()
{
conn.Open(L"Data Source=localhost;Database=ProudDB-Test;Trusted_Connection=yes");
conn.BeginTrans(); // This method begins the transaction.
int Val = 3;
conn.Execute(L"delete from Table1 where FieldA=%d",Val);
conn.CommitTrans(); // This method commits the transaction.
}