Default Repository Databases

Meta Data Services Programming

Meta Data Services Programming

Default Repository Databases

If you do not specify the repository database explicitly, a connection will be established to the default repository database. This database is managed by Microsoft® Jet. Its location is determined by the default value of the Current Location registry key.

If you are using the Create method and an unspecified connection string, and if the default database does not exist, the repository engine creates the database. If you are using the Connection method (or the Create method on an existing database) and an unspecified connection string, the repository engine looks for the database at the default location.

The location of the default repository database is stored in the system registry in this registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Repository\Current Location

This registry key must contain a DBQ keyword-value pair, SERVER keyword-value pair, DSN keyword-value pair, or just the path to a Jet repository database. The default value for this registry key is:

windowsDirectory\MsApps\Repostry\Repostry.mdb

Replace windowsDirectory with the path specification for the directory that contains the Microsoft Windows installation. Unless you change this registry key value after installing Microsoft SQL Server™ 2000 Meta Data Services, your default database server is Jet.

See Also

Connecting Through a DSN

Connecting to a Jet Repository Database

Connecting to a SQL Server Repository Database