User proxy databases

When a user proxy database is created, metadata for the proxy tables is imported automatically from the remote location that contains the actual tables. This metadata is then used to create proxy tables within the proxy database.

To create a proxy database, use:

	create database <dbname> 
		[create database options] 
		[with default_location = ’pathname’] 
		[for proxy_update]] 

The use of the clause with default_location allows you to specify the storage location of any new tables, and the location from which metadata may be imported for automatic proxy table creation if the for proxy_update clause is also specified. for proxy_update establishes the database as a proxy database; with default_location defines the location from which proxy tables are imported. Without for proxy_update, the behavior of with default_location is the same as that provided by sp_defaultloc — a default storage location is established for new and existing table creation, but automatic import of proxy table definitions does not take place during the processing of the create database command.

The value of path name is a string identifier in the following format: servername.dbname.owner.

If for proxy_update is specified with no default_location, an error is reported.

When a proxy database is created (using the for proxy_update option), Component Integration Services functions are called upon to:

After the database has been created, it contains a proxy table for each table or view found in the default location. The behavior for a user proxy database is identical to prior database behavior. Users can create additional objects, such as procedure, views, rules, defaults, and so on, and both DDL and DML statements that operate on proxy tables behave as documented in this book.

The only exception to this is the alter database command. The syntax and capabilities of this command are described in the next section.