Getting Started with SQL-DMO

SQL-DMO (SQL Server 2000)
SQL-DMO Syntax Conventions

SQL-DMO typographical conventions are based on those used in Microsoft® Visual Basic® reference materials.

ConventionUsed for
UPPERCASETransact-SQL statements, macro names, and terms used at the operating system level.
monospace
Sample command lines and program code.
italicInformation that the user or the application must provide.
boldSQL-DMO objects; object events, methods or properties; data types; and other syntax that must be typed exactly as shown.

Note  Automation allows SQL-DMO to expose object properties, methods, events, and constants through intelligent and easy-to-use automation controllers, simplifying the development task.

When using an automation controller, such as Visual Basic, assistance built into the controller exposes SQL-DMO object properties, methods, and events as defined, and prompts for required or optional parameters as part of the development process. When using C or C++, every object property and method appears as an object member function, and the distinction disappears.

The SQL-DMO documentation is directed at the user of an automation controller. Properties are documented as properties, not member functions. Prototypes for SQL-DMO object member functions are included in each topic for the C or C++ developer.





System Requirements for SQL-DMO

SQL-DMO (SQL Server 2000)
System Requirements for SQL-DMO

SQL-DMO uses the Microsoft® SQL Server™ ODBC driver to connect to and communicate with instances of SQL Server. Stored procedures supporting SQL-DMO are installed on each instance of SQL Server.

SQL-DMO clients require one of these operating systems:

  • Microsoft Windows NT® version 4.0 (Service Pack 5 or later).

  • Microsoft Windows® 98 or Microsoft Windows® 95.

    Or

  • Microsoft Windows® 2000.

SQL-DMO clients require SQL Server ODBC Driver, version 3.80 or later, which ships with SQL Server 2000. The client network library must be properly configured.

SQL-DMO locates instances of SQL Server using the SQL Server instance name. SQL-DMO does not use ODBC data source definitions for connection, and you need not use the ODBC Administrator to create data source definitions for servers administered by SQL-DMO applications.

Stored procedures that support SQL-DMO are created as part of an instance of SQL Server 2000. The Transact-SQL script Sqldmo.sql is shipped with SQL Server 2000 and can be used to reinstall the required stored procedures if necessary.





Installing SQL-DMO

SQL-DMO (SQL Server 2000)
Installing SQL-DMO

All required SQL-DMO components are installed as part of an instance of Microsoft® SQL Server™ server or client. SQL-DMO is implemented in a single dynamic-link library (DLL). You may develop SQL-DMO applications on either a client or a server. When using an OLE Automation controller as a development platform, such as Microsoft Visual Basic®, no additional files are required. Application development using C or C++ requires the SQL-DMO header files.

SQL-DMO sample applications, providing additional reference material for SQL-DMO application development, are included with SQL Server.

DirectoryFileDescription
C:/Program Files/Microsoft SQL Server/80/Tools/BinnSqldmo.dllDLL implementing SQL-DMO objects.
C:/Program Files/Microsoft SQL Server/80/Tools/BinnSqldmo80.hlpSQL-DMO help file used within the development environment to provide context sensitive help about SQL-DMO objects, properties and methods.
C:/Program Files/Microsoft SQL Server/80/Tools/Binn/
Resources/xxxx
Sqldmo.rllLocalized resource file. The resource directory varies based on the national language of the instance of SQL Server client or server. For example, the directory 1033 is a decimal representation of the language identifier 0X0409, indicating English, U.S.
C:/Program Files/Microsoft SQL Server/80/Tools/
Devtools/Include
Sqldmo.hC/C++ header file containing SQL-DMO member function prototypes, enumerated data types, and macros.
C:/Program Files/Microsoft SQL Server/80/Tools/
Devtools/Include
Sqldmoid.hC/C++ header file containing SQL-DMO interface and class identifiers.
/Program Files/Microsoft SQL Server/MSSQL/InstallSqldmo.sqlTransact-SQL script implementing stored procedures that support SQL-DMO. Available on SQL Server server-instance only.
C:/Program Files/Microsoft SQL Server/80/Tools/
Devtools/Samples/Sqldmo
ALLSample applications illustrating SQL-DMO use.

To register the SQL-DMO components on a client computer

  • From C:/Program Files/Microsoft SQL Server /80/Tools/Binn/Resources/<language> directory, execute:
    /Program Files/Microsoft SQL Server /80/Tools/Binn/REGSVR32 SQLDMO.DLL
  • From any directory, execute:
    C:/Program Files/Microsoft SQL Server /80/Tools/Binn/REGSVR32.EXE 

    C:/Program Files/Microsoft SQL Server /80/Tools/Binn/resources/1033/SQLDMO.RLL
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值