共用方式為


QueryResults Object

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The QueryResults object presents tabular data to the SQL Distributed Management Objects (SQL-DMO) application. SQL-DMO enumeration methods, such as the EnumLocks method of the Database object, return a QueryResults object to report their data. SQL-DMO statement execution methods, such as the ExecuteWithResults method of Database and SQLServer objects, also return a QueryResults object.

顯示目前物件的 SQL-DMO 物件模型

備註

The QueryResults object is a reporting tool. All properties of the QueryResults object are read-only. With the QueryResults object, you can:

  • Navigate data returned from a server running Microsoft SQL Server as the result of statement execution.

  • Retrieve specific data values in a data type usable by your application.

  • Get the data result of a statement execution as a delimited string of values.

[!附註]

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

請參閱

參考