This chapter provides instructions for using SQL-DMO objects in your Visual Basic and C++ programs. The SQL-DMO custom component provides 32-bit COM objects which can be used from 32-bit Visual Basic programs and 32-bit C++ programs.
The SQL-DMO component name or application name is SQLOLE.
For brevity, the sample code included in this chapter does not check for success or handle errors.
Visual Basic is an OLE Automation controller. You can use Visual Basic to write programs that use SQL-DMO objects. The steps required to use SQL-DMO objects in a Visual Basic program are:
Use a period (.) to separate an object variable from the properties, methods and collections of that object.
You can use C++ and OLE functions to write programs that use SQL-DMO objects. The steps required to use SQL-DMO objects in a C++ program are:
Use the member-selection operator (->) to separate a "pointer to an object" variable from the property, method, and collection functions.