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.