Article ID: 163843 - Last Review: February 12, 2007 - Revision: 3.1 INFO: Managing Linked Tables When You Create a New DB from VSSThis article was previously published under Q163843 On This PageSUMMARY
Advanced: 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 INFORMATION
When 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 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: 159691
(http://support.microsoft.com/kb/159691/EN-US/
)
INF: Procedure to Create Data Sources and Relink ODBC Tables
Follow 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>'.
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.
An error occurred while trying to create the linked table '<Table
Name>'.
For example, the following steps cause an error when you create a new database from a Visual SourceSafe project:
| Article Translations
|
Back to the top
