Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Errors Occur When Using File DSNs in Access 2000


View products that this article applies to.

Symptoms

After you successfully create, and then view a linked Open Database Connectivity (ODBC) table in Microsoft Access by using a file data source name (DSN), one of the following error messages is generated after you restart Access, and then try to open one of the previously created linked tables:
Could not execute query. Could not find linked table. [Microsoft][ODBC][SQLServer] Invalid object name 'Table_Name': (#208)
-OR-
ODBC--Connection to 'DataSourceName' failed.
Then, the following error message occurs:
Microsoft Access can't open the table in Datasheet view.

↑ Back to the top


Cause

The Connect property of the table does not have enough information about the File DSN or the connection properties.

↑ Back to the top


Resolution

Use a Machine DSN (that is, a User DSN or a System DSN) instead of a File DSN.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

Depending on the ODBC data source, you may possibly resolve the problem by modifying the Connect property of the linked table programmatically. Although the exact connection properties vary depending on the ODBC data source, the following Microsoft Knowledge Base article discusses the required properties for the Microsoft SQL Server and the general process that applies for all linked ODBC tables:

208295 ACC2000: Procedure to Create Data Sources and Relink ODBC Tables

Steps to Reproduce the Behavior

  1. Create a new nonintegrated SQL Server 2000 logon.
  2. Set the default database of the new user to Northwind (or another user database), and then grant the user appropriate permissions.
  3. Create a new File DSN by using the security credentials of the user from step 1.
  4. Open a .mdb file in Access, and then create a linked table by using the DSN from step 3.

    Note that the link works correctly after the user first connects.
  5. Close Access, and then reopen the .mdb file from step 4.
  6. Open the linked table that you created in step 4.

    You receive the error message that is mentioned in the "Symptoms" section of this article.

↑ Back to the top


References

For additional information about other problems you may experience with File DSNs, click the article numbers below to view the articles in the Microsoft Knowledge Base:
212886 ACC2000: Using File DSN to Import or Link a FoxPro ODBC Data Source Causes Reserved Error -7778
201268 ACC2000: Select Data Source Dialog Reads Floppy and CD-ROM Drives Repeatedly

↑ Back to the top


Keywords: KB327268, kbpending, kbbug

↑ Back to the top

Article Info
Article ID : 327268
Revision : 2
Created on : 7/15/2004
Published on : 7/15/2004
Exists online : False
Views : 267