Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. Gets a data reader to execute the specified Transact-SQL statements, and specifying a SqlCommand object that can be used to terminate a long-running query.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Public Function GetDataReader ( _
query As String, _
<OutAttribute> ByRef command As SqlCommand _
) As SqlDataReader
'Usage
Dim instance As ExecuteSql
Dim query As String
Dim command As SqlCommand
Dim returnValue As SqlDataReader
returnValue = instance.GetDataReader(query, _
command)
public SqlDataReader GetDataReader(
string query,
out SqlCommand command
)
public:
SqlDataReader^ GetDataReader(
String^ query,
[OutAttribute] SqlCommand^% command
)
member GetDataReader :
query:string *
command:SqlCommand byref -> SqlDataReader
public function GetDataReader(
query : String,
command : SqlCommand
) : SqlDataReader
Parameter
- query
Typ: System.String
A String value specifying the Transact-SQL statements to run.
- command
Typ: System.Data.SqlClient.SqlCommand%
A SqlCommand object to use for terminating the reader if the query runs for too long a time.
Rückgabewert
Typ: System.Data.SqlClient.SqlDataReader
A SqlDataReader object that can be used to process the result sets returned by the Transact-SQL statements.