Cliquez pour évaluer et commenter
MSDN
MSDN Library
SQL Server
SQL Server 2008
Moteur de base de données
Références techniques
Référence SQL-DMO
Methods (SQL-DMO)
E (SQL-DMO Methods)
 ExecuteImmediate Method (Database, ...

  Passer à l'affichage pour faible bande passante
Contenu de la communauté
Dans cette section
Statistiques Annotations (0)
D'autres versions sont également disponibles pour :
Documentation en ligne de SQL Server 2008 (mai 2009)
ExecuteImmediate Method (Database, SQLServer)

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

The ExecuteImmediate method submits a Transact-SQL command batch on a connection, and directs execution or batch interpretation as specified by the application.

object
.ExecuteImmediate(
Command 
, [ ExecutionType ] 
, [ Length ] )
object

Expression that evaluates to an object in the Applies To list.

Command

String that specifies a Transact-SQL command batch.

ExecutionType

Optional. Long integer that controls statement batch execution as described in Settings.

Length

Optional. Long integer that indicates the statement batch length.

HRESULT ExecuteImmediate(
SQLDMO_LPCSTR Command,
SQLDMO_EXEC_TYPE ExecType = SQLDMOExec_Default,
long lLength CPPDEFAULT(= 0));

Set the ExecutionType argument using these values.

Constant Value Description

SQLDMOExec_ContinueOnError

2

Batch execution continues on any error that does not break the connection.

SQLDMOExec_Default

0

No statement execution options set.

SQLDMOExec_/NoCommandTerm

1

Ignore the command terminator in the script. Execute as a single batch.

SQLDMOExec_NoExec

4

Execute SET NOEXEC ON prior to batch execution. Execute SET NOEXEC OFF after batch execution.

SQLDMOExec_ParseOnly

8

Execute SET PARSEONLY ON prior to batch execution. Execute SET PARSEONLY OFF after batch execution.

SQLDMOExec_QI_ON

16

Execute SET QUOTED_IDENTIFIER ON prior to batch execution. Execute SET QUOTED_IDENTIFIER OFF after batch execution.

Contenu de la communauté   Qu'est-ce que le Contenu de la communauté ?
Ajouter du contenu RSS  Annotations
Processing
© 2009 Microsoft Corporation. Tous droits réservés. Conditions d'utilisation  |  Marques  |  Confidentialité
Page view tracker