Developing SQL-DMO Applications Using an OLE Automation Controller

When using an OLE Automation controller as a SQL-DMO application development tool, you should indicate that the application references the SQL-DMO object library. A specific OLE Automation controller defines which object library reference methods it supports.

For example, the Microsoft® Visual Basic® Project menu item References allows you to indicate that SQL-DMO will be used by the project. When you indicate that a specific object library is referenced, Visual Basic can use OLE Automation to query the object library’s type library for information about objects contained in the library. Visual Basic uses type library data to both enrich the development experience and optimize the executable application.

When an OLE Automation controller can support an object library reference at the application or project level, it is strongly recommended that you use the feature. Though the level of programming assistance varies from controller to controller, all OLE Automation controllers can use the object library reference to optimize the executable application. Making the controller aware of the SQL-DMO library at the earliest opportunity allows it to provide you with the most efficient SQL-DMO application.

For more information about support for add-in object libraries, see your OLE Automation controller documentation.

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.