

What is a data source? A data source is a stored set of information that allows Excel and Microsoft Query to connect to an external database. Using Microsoft Query to import data to import external data into Excel with Microsoft Query, follow these basic steps, each of which is described in more detail in the following sections. After you create your query and return the data to Excel, Microsoft Query provides the Excel workbook with both the query and data source information so that you can reconnect to the database when you want to refresh the data. Microsoft Query uses the data source to connect to the external database and to show you what data is available. How Microsoft Query uses data sources After you set up a data source for a particular database, you can use it whenever you want to create a query to select and retrieve data from that database - without having to retype all of the connection information.

For example, you can create a monthly sales summary and refresh it every month when the new sales figures come in.

Updating your worksheet in one operation Once you have external data in an Excel workbook, whenever your database changes, you can refresh the data to update your analysis - without having to re-create your summary reports and charts. With Microsoft Query, you can select the columns of data that you want and import only that data into Excel. You can retrieve a part of the data by selecting only the data for the product and region that you want to analyze. For example, if your data is stored in an Access database, you might want to know the sales figures for a specific product by region. Selecting data from a database You retrieve data from a database by creating a query, which is a question that you ask about data stored in an external database. For information about installing an ODBC driver or data source driver that is not listed here, check the documentation for the database, or contact your database vendor. You can use also ODBC drivers or data source drivers from other manufacturers to retrieve information from data sources that are not listed here, including other types of OLAP databases. Microsoft SQL Server Analysis Services (OLAP provider)

Microsoft Office provides drivers that you can use to retrieve data from the following data sources: You can also retrieve data from Excel workbooks and from text files. Types of databases that you can access You can retrieve data from several types of databases, including Microsoft Office Access, Microsoft SQL Server, and Microsoft SQL Server OLAP Services. Using Microsoft Query, you can connect to external data sources, select data from those external sources, import that data into your worksheet, and refresh the data as needed to keep your worksheet data synchronized with the data in the external sources.
