--- title: "Sample ODBC Program" description: "Sample ODBC Program" author: David-Engel ms.author: davidengel ms.date: "01/19/2017" ms.service: sql ms.subservice: connectivity ms.topic: conceptual --- # Sample ODBC Program The [ODBC code sample](../../connect/odbc/cpp-code-example-app-connect-access-sql-db.md) prompts you for an ODBC data source name. You will then be prompted to enter a query and the sample will display the results of the query.