Freigeben über


SQLServer Object

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The SQLServer object exposes the attributes of an instance of Microsoft SQL Server.

SQL-DMO-Objektmodell, das das aktuelle Objekt anzeigt

Properties

Methods

Hinweise

The SQLServer object contains the objects and collections that implement SQL Server administrative tasks for SQL Distributed Management Objects (SQL-DMO). The object enables SQL-DMO applications to connect to an instance of SQL Server by name, establishing the context for administrative tasks.

With the SQLServer object, you can:

  • Connect to an instance of SQL Server.

  • Query an instance of SQL Server to determine its installed configuration and run-time parameters.

  • Add and remove SQL Server objects, such as backup devices, databases, and logins.

  • Execute Transact-SQL or operating system commands on the server.

  • Disable processes on an instance of SQL Server.

  • Trap SQL Server events and SQLServer object events, providing status information to SQL-DMO application users or debugging information to SQL-DMO application developers.

HinweisHinweis

The SQLServer object is compatible with instances of SQL Server versions 7.0 and later. However, the SQLServer2 object extends the functionality of the SQLServer object for use with features that were introduced in SQL Server 2000.

Siehe auch

Verweis