--- description: "Sample ODBC Program" title: "Sample ODBC Program | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual ms.assetid: 38ae6b7f-f53b-48a7-8fe5-4bbd6e0e414b author: David-Engel ms.author: v-daenge --- # 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.