Microsoft KB Archive/208304

= ACC2000: "Data Source Name Not Found" Message When You Open Web Page =

Article ID: 208304

Article Last Modified on 1/26/2005

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q208304



Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access database (.mdb).



SYMPTOMS
After you export data to create Dynamic HTX/IDC or Dynamic Active Server Pages (ASP) files on your Web server, you may receive the following message when you try to view those files with your Web browser:

The page cannot be displayed

In addition to the path and file name of the page that you try to open, the error message may include the following:

Data source name not found and no default driver specified



CAUSE
This behavior occurs when there is not a System data source name (DSN) data source on the server or when your Web page file contains an incorrect reference to the System DSN.



RESOLUTION
To add a new System DSN or check the name of an existing data source on your Web server computer, follow these steps:
 * 1) Open the ODBC Data Source Administrator on your Web server:
 * 2) * In Windows 98, click Start, point to Settings, click Control Panel, and then open ODBC Data Sources (32 bit).
 * 3) * In Windows 2000 and Windows NT, click Start, point to Settings, click Control Panel, click Administrative Tools, and then open ODBC Data Sources.
 * 4) In the Data Sources dialog box, click the System DSN tab.
 * 5) Click Add if you do not see the name of the System DSN that you used as the DSN in the export process.
 * 6) Click Microsoft Access Driver, and then click Finish.

NOTE: If Microsoft Access Driver does not appear, it needs to be installed on your Web server.
 * 1) In the ODBC Microsoft Access Setup dialog box, type the requested information. The name that you type in the Data Source Name box is the name you will use in the Data Source Name box in the Export Table ' ' As dialog box, where   is the name of the table that you are exporting.
 * 2) Click OK to close the ODBC Microsoft Access Setup dialog box.
 * 3) Click OK in the ODBC Data Source Administrator dialog box.

If the DSN in the System DSN on your Web server is different than the one you used when you created your Web pages, return to the export process in Microsoft Access and recreate your Web pages using the correct DSN.



MORE INFORMATION
Dynamic HTX/IDC and Dynamic ASP files are Web pages that use ODBC to display updated information from your database each time you open or refresh the page in your Web browser.

NOTE: Dynamic HTX/IDC and Dynamic ASP files require specific Web server software, and in some cases, specific Web browser software.

Steps to Reproduce Behavior
 Start Microsoft Access and open the sample database Northwind.mdb. In the Database window, click Tables, and then click Customers. On the File menu, click Export. In the Export Table 'Customers' As dialog box, browse to the folder in which you want to store your Web page (in many cases this folder is Inetpub\Wwwroot), accept the file name Customers, select Microsoft Active Server Pages (*.asp) in the Save as type list, and then click Save. In the Microsoft Active Server Pages Output Options dialog box, type MyDSN in the Data Source Name box, type the URL of the location (in many cases this may be //localhost/ ) where you will store the ASP file in the Server URL box, and then click OK.

NOTE: If you do not have write permissions for the destination folder on your Web server, you receive the following message:

Microsoft Access can't save the output data to the file you've selected.

</li> Start your Web browser, and in the Address box, type the URL for the Customers.asp file you just created (for example, //localhost/customers.asp )

.

Notice that you receive the following message:

Data source name not found and no default driver specified

</li></ol>

<div class="references_section">