In this case, if Transact-SQL statement is in a batch, the current connection context is the database defined by the USE statement; if the Transact-SQL statement is in a stored procedure, the connection context is the database that contains the stored procedure.
Das Festlegen zur Analysezeit bedeutet Folgendes: Wenn sich die SET-Anweisung im Batch oder in der gespeicherten Prozedur befindet, wird sie unabhängig davon wirksam, ob die Codeausführung tatsächlich diesen Punkt erreicht, und die SET-Anweisung wird wirksam, bevor Anweisungen ausgeführt werden.
The statement or batch is parsed, but not executed.
Executes a batch of Transact-SQL statements that does not expect a returned results set on the specified instance of SQL Server.
Führt einen Batch von Transact-SQL-Anweisungen, der für die angegebene SQL Server-Instanz keine Rückgabe eines Resultsets erwartet, asynchron aus.
Represents a Transact-SQL statement or stored procedure to execute against a SQL Server database.
Stellt eine Transact-SQL-Anweisung oder eine gespeicherte Prozedur dar, die in einer SQL Server-Datenbank ausgeführt werden soll.Beispiele
execution of the Transact-SQL statement or stored procedure that is described by this SqlCommand, generally executing commands such as INSERT, DELETE, UPDATE, and SET statements.
Führt Befehle aus, z. b. Anweisungen zum Einfügen, löschen, aktualisieren und Festlegen von Transact-SQL.XmlReader object.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.