Verifying a Data Source Name
This section describes how to verify that an application can connect to an ODBC data source using Microsoft Excel. You can accomplish the same thing with any ODBC application.
- Select Data > Import External Data > New Database Query...

If Microsoft Query is not installed, Excel offers to install it for you.
- Select the data source name (Stock_Schema) in this example.
- Disable "Use the Query Wizard..." and click OK.

- In the Add Tables dialog, clock Close.

- Click the SQL button.

- Enter a simple query such as select distinct calendar_year from date_dimension and click OK.

- Click OK.

- The data values 2000, 2001, 2002, 2003, 2004 indicate that you have successfully connected and executed a query through ODBC.

- Click File > Return Data to Microsoft Office Excel.
- In the Import Data dialog, click OK.

- The data is now available to be used in an Excel worksheet.
