如需詳細資訊,請參閱 EXECUTE (Transact-SQL)。INSERT...EXEC 陳述式中不能指定 EXECUTE 陳述式的 RESULT SETS 選項。如果搭配使用 execute_statement 與INSERT,則每個結果集都必須相容於資料表或 column_list 中的資料行。您可以使用 execute_statement,以在相同伺服器或遠端伺服器中執行預存程序。 執行遠端伺服器...
また、execute_statement が含まれる INSERT ステートメントでもサポートされていません。 OUTPUT INTO 句は、<dml_table_source> 句を含む INSERT ステートメントではサポートされません。 この句の引数と動作の詳細については、「OUTPUT 句 (Transact-SQL)」を参照してください。
( <Table_Hint_Limited> [ ...n ] ) ] } { [ ( column_list ) ] [ <OUTPUT Clause> ] { VALUES ( { DEFAULT | NULL | expression } [ ,...n ] ) [ ,...n ] | derived_table | execute_statement | <dml_table_source> | DEFAULT VALUES } } } [;] ::= { [ server_name ....
引用本地分区视图、分布式分区视图或远程表的 DML 语句或包含 execute_statement 的 INSERT 语句都不支持 OUTPUT 子句。 包含 <dml_table_source> 子句的 INSERT 语句中不支持 OUTPUT INTO 子句。 有关该子句的参数和行为的详细信息,请参阅 OUTPUT 子句 (Transact-SQL)。
Toute clause WHERE contenant une <search_condition> valide qui filtre les lignes retournées par <dml_statement_with_output_clause>. Pour plus d’informations, consultez Condition de recherche (Transact-SQL). Utilisé dans ce contexte, <search_condition> ne peut pas contenir de sous-requêtes, ...
The SELECT statement cannot contain a common table expression (CTE). execute_statement Is any valid EXECUTE statement that returns data with SELECT or READTEXT statements. For more information, see EXECUTE (Transact-SQL). The RESULT SETS options of the EXECUTE statement cannot be specified in an...
for building the INSERT and VALUES clauses--of an INSERT DML statement.DECLARE@stringNVARCHAR(MAX)--for storing the first half of INSERT statementDECLARE@stringDataNVARCHAR(MAX)--for storing the data (VALUES) related statementDECLARE@dataTypeNVARCHAR(20)--data types returned for respective columns...
SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ad Hoc Distributed Queries'。有关启用 'Ad Hoc Distributed Queries' 的详细信息,请参阅 SQL Server 联机丛书...
So be sure to check out the topic “INSERT (Transact-SQL)” in SQL Server Books Online. You can also find additional examples of the INSERT statement in the topic “INSERT Examples (Transact-SQL)” in SQL Server Books Online.We have supplied the full-size railroad diagrams for t...
] table_or_view_name } <dml_table_source> ::= SELECT FROM ( <dml_statement_with_output_clause> ) [AS] table_alias [ ( column_alias [ ,...n ] ) ] [ WHERE <search_condition> ] [ OPTION ( <query_hint> [ ,...n ] ) ] syntaxsql Copier -- External ...