SQL-DMO exposes database objects for manipulation by client applications. Tables, stored procedures, and server properties are presented through a COM interface.
Using SQL-DMO, applications can include the following capabilities:
NoteSQL Server installs a reference to the Microsoft SQLOLE Object Library which is an ActiveX interface to SQL-DOM. While it is possible to obtain data from SQL Server tables using SQL-DMO, you should use RDO for this purpose.
RDO is optimized for use with ODBC, and it provides capability with ISAM. Using RDO you can execute queries that return multiple result sets, limit the number of rows returned, and monitor all the messages generated by the remote data source without compromising the query. To connect using RDO, set a reference to RDO, then connect to a database using the Connection object. The Resultset object represents the rows returned from a query.
ADO is the data interface to OLE DB. It is designed to access databases of various types. Unlike DAO and RDO, ADO is an extensible programming model that uses independent data service providers to access specific databases.
SQL-DMO is a COM-based object model that allows developers to add SQL Server administrative features to an application. SQL-DMO exposes database objects for manipulation by client applications. Tables, stored procedures, and server properties are presented through a COM interface.