INFO: Managing Linked Tables When You Create a New DB from VSSLast reviewed: March 28, 1997Article ID: Q163843 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. Microsoft Visual SourceSafe integration with Microsoft Access enables you to create a database from the SourceSafe server. This feature enables users to create additional copies of a shared project on different workstations or folders. This article discusses methods for maintaining linked tables when you create a new database from a Visual SourceSafe project. This article assumes that you are familiar with using the client and server side capabilities of Visual SourceSafe. For more information about Visual SourceSafe, please refer to the "Visual SourceSafe User's Guide" or the Help topics available from the Visual SourceSafe Help menu.
MORE INFORMATIONWhen you create a new database from a project on a Visual SourceSafe server, any linked tables in the database are refreshed as the table definitions are created. Microsoft Access expects to find the exact configuration on the target workstation with respect to the location of the linked tables or in the case of linked ODBC tables, the exact DSN and configuration to connect to the ODBC data source successfully. If the required folder, database file, or ODBC data source is not found as the linked table is being created, the following error occurs:
An error occurred while trying to create the linked table '<Table Name>'The error indicates that the table definition could not be created and will not exist in the new database. It is important to note that the table still exists in the SourceSafe project on the server and that the new database is not a true reflection of the project; this situation must be corrected. The following sections discuss techniques you can use to relink the tables in your database.
Links to ODBC Data SourcesYou can create a procedure that uses the RegisterDatabase method to create an ODBC data source for a linked table. Create the code module in your database and check it in to the Visual SourceSafe project; then when you create a new database from that project on another workstation, the database will contain the necessary code to refresh its linked ODBC tables. NOTE: If ODBC is not installed on the target workstation when you create a new database from a Visual SourceSafe project, you must install ODBC and the ODBC drivers your database uses before you can refresh linked ODBC tables. For an example of a procedure that programmatically creates ODBC data sources and refreshes linked tables, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q159691 TITLE : INF: Procedure to Create Data Sources and Relink ODBC TablesFollow these steps to recreate ODBC links and resolve conflicts with the SourceSafe project when you create a new database:
Links That Use the Microsoft Jet Database EngineWhen you create a database from a Visual SourceSafe project that contains links to Microsoft Access, Microsoft FoxPro, dBASE or any of the other file formats supported by the Jet database engine, you receive one of the following error messages if Microsoft Access cannot locate the linked table:
Couldn't find file '<File Name>'. -or- The Microsoft Jet database engine could not find the object '<File Name>'. Make sure the object exists and that you spell its name and the path name correctly.This is followed by:
An error occurred while trying to create the linked table '<Table Name>'.This happens if the path to the linked table file is different on the workstation than it is on the computer where the table links were created, or if the linked file has been moved. For example, the following steps cause an error when you create a new database from a Visual SourceSafe project:
|
Additional query words: VSS SS ACCSCC attach
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |