Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft SQL Server 2005 provides new and enhanced query syntax elements for more powerful data accessing and processing.
New DML Clauses and Options
Clause or option | Description |
---|---|
Returns inserted, updated, or deleted rows to the calling application as part of the INSERT, UPDATE, or DELETE statement. |
|
Specifies a temporary named result set or view defined within the scope of a SELECT, INSERT, UPDATE, or DELETE statement. |
|
Enables partial updates and high performance appends to varchar(max), nvarchar(max), and varbinary(max) data type columns as part of the UPDATE statement. |
Enhanced DML Statements and Clauses
Statement or clause | Description |
---|---|
Provides the following new syntax items:
|
|
Provides the following new syntax items:
Allows for the insertion of user-defined type values. |
|
Provides the following new syntax items:
|
|
Provides the following new syntax items:
|
|
Provides the following new FOR XML directives:
Allows for nested FOR XML queries. |
|
Provides the following additional table-source syntax:
|
|
Can be used with SELECT, INSERT, UPDATE, and DELETE statements. |
SQL Server 2005 also includes new DDL statements. For more information, see Data Definition Language (DDL) Statements (Transact-SQL).
New Service Broker-related Statements
A queue can be the target of a SELECT statement, but a queue cannot be used with an INSERT, UPDATE, or DELETE statement. SQL Server 2005 introduces the following DML statements for working with Service Broker objects.
Statement | Description |
---|---|
Starts a new conversation between two services. |
|
Starts a timer on a conversation. |
|
Ends an existing conversation. |
|
Locks the conversation group for the next available message on a queue. |
|
Associates an existing conversation with a different conversation group. |
|
Retrieves one or more messages from a queue. |
|
Sends a message to a service. |
SQL Server 2005 also includes new DDL statements for working with Service Broker objects. For more information, see Data Definition Language (DDL) Statements (Transact-SQL).
See Also
Other Resources
What's New and Enhanced in Transact-SQL (Transact-SQL)