Library tutorials & articles

SQL Distributed Management Objects

What is SQL-DMO?

The SQL-DMO is a part of the Distributed Management Framework that Microsoft provides for SQL Server. This framework is three-tiered consisting of SQL Server, SQL-DMO, and SQL Executive. The SQL-DMO is the middle level that provides the interface to manage features of SQL Server. The SQL-DMO has its own hierarchy consisting of the application, SQL Server, database, and table objects. The important point to remember is that each level consists of objects related to the level. For example, the database level consists of stored procedure and table objects.

Files needed

Microsoft introduced SQL-DMO in SQL Server version 6.0. A good rule to observe is to use the proper version of SQL-DMO with the proper SQL Server. These DLL's are located within the BINN directory of your SQL Server.

SQL Server 6.0
SQLOLE32.DLL
SQL Server 6.5
SQLOLE65.DLL
SQL Server 7.0 & SQL Server 2000
SQLDMO.DLL - The names are the same, but they really are different. You can not access SQL Server 2000 using the SQL 7 SQL-DMO, although you can do vice-versa.
MSDE
SQLDMO.DLL - Both SQL 7 and SQL Server 2000 should work.

(Save your self some stress and just load the client tools for the given SQL Server on your web server!)

Comments

  1. 17 Oct 2002 at 10:29
    Hi,

    I read your article and it is indeed an informative one.  However I am having some serious problems creating a Job Schedule in VB.NET.  I have managed to reduce the number of errors in the properties of the JobSchedule Object but I am still experiencing some difficulty...

    You said you would help with any questions soI appeal to you for help!!

    Regards,
    Liselle
  2. 01 Oct 2002 at 15:44

    Thank you for this article I didn't know about DMO before,it was really important to me, I had the same problem I am working on a project and I have to give and solve problems from time to time , please write more about DMO

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of SQL Distributed Management Objects.

Leave a comment

Sign in or Join us (it's free).

Carvin Wilson

Related podcasts

  • Stack Overflow: Podcast #28

    This is the twenty-eighth episode of the StackOverflow podcast, where Joel and Jeff discuss Windows Azure, SQL Server 2008 full text search, Bayesian filtering, porn detection, and project management — among other things. Jeff met the inestimable Joey DeVilla aka Accordion Guy...

Want to stay in touch with what's going on? Follow us on twitter!