This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The AddObjectByName method appends the database object named to the list of those objects copied when the Transfer method of the Database object is used to copy database schema or data.
Specify the value of the ObjectType argument by using these SQLDMO_OBJECT_TYPE values.
List or query result set membership includes all but SQL Server system objects.
Database objects added include Microsoft SQL Server system and user database objects.
Database objects added include only user database objects.
Database object added is a SQL Server default.
Database object added is a SQL Server rule.
Database object added is a stored procedure.
Database object added is a trigger.
Database object added is a SQL Server user-defined data type.
Database object added is a user-defined function.
Database object added is a user-defined table.
Database object added is a view.
SQL Distributed Management Objects (SQL-DMO) implements copying of database schema and data by using the Transfer object and methods implemented on the Database object. The Transfer object is used to define what database objects are affected by the copy and how the copy is performed. Use the AddObject and AddObjectByName methods to add database objects to those affected by the copy.