The information in this article applies to:
SUMMARYSQL Server Distributed Management Objects (DMO) has been redesigned and enhanced to reflect the new SQL Server 7.0 architecture and features, and there is a new DMO object model that must be used to administer SQL 7.0 servers. From the perspective of a SQL-DMO application, the most significant changes to the object model affect database creation and modification, backup and restore, and security. MORE INFORMATION
The SQL Server 6.5 DMO object model was referred to as "SQLOLE". In SQL Server 7.0 you create a reference to "SQLDMO", instead. The two object models are very similar. If your DMO application must work with both SQL Server 6.5 and SQL 7.0, you may be able to use much of the same code, but there will probably be places where code branches are necessary to handle the differences between the different versions of the DMO objects. There is a sample application (DMOPing) provided with SQL Server 7.0 that demonstrates how to handle the initial connection to determine the SQL Server version so you can decide whether to create your SQLServer object from SQLOLE or SQLDMO. Refer to the SQL Server Books Online topic: "Dmoping (C++) (SQL-DMO)" for a description. Also, you can find the code on the SQL Server CD-ROM in the \DevTools\Samples\sqldmo\cpp\dmoping directory. http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp
If you are using VBScript, you will need to define the appropriate constants to use this code:
The following objects and collections are new to the SQL Server 7.0 version of DMO:
FileGroupsThe following objects and collections have been renamed in the SQL Server 7.0 version of SQL-DMO: Devices to BackupDevicesThese objects and collections are present in the SQL Server 6.5 DMO object model, but have been removed in the SQL Server 7.0 version: TasksThe Group object is a special object that is accessible to 6.x servers only. Additional query words: SQLDMO
Keywords : SSrvProg kbSQLServ700 |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |