you will need a reference to ADO in your project references.

ADO doesnt use database objects, it used Connections, Commands and Recordsets.

Also SQL should be the same for both.