Query Processing

Access objects in the same order
Architecture

Access objects in consistent order to minimize deadlocks in concurrent transactions.

#query-processing#architecture
Activities that cause a checkpoint
Architecture

Checkpoints flush dirty data pages from the buffer cache of the current database to disk. This

#query-processing#architecture
Advanced scanning
Architecture

No description available.

#query-processing#architecture
and in temporary tables?
Architecture

Is optimized locking enabled?

#query-processing#architecture
and random inserts (queue table)
Architecture

Use of the Hash partition mitigation strategy can lead to partition elimination

#query-processing#architecture
Appendix: Alternate technique
Architecture

Using the technique above we were able to confirm that the contention was occurring on a

#query-processing#architecture
Automatic checkpoints
Architecture

A minimally logged operation is performed in the database; for example, a bulk-copy

#query-processing#architecture
Avoid the use of SQL Trace and SQL Server Profiler
Architecture

The performance of index operations such as creating or rebuilding indexes can be improved

#query-processing#architecture
Backup frequency and business requirements
Architecture

No description available.

#query-processing#architecture
Best practices
Architecture

No description available.

#query-processing#architecture
Cache multiple plans for the same query
Architecture

### sys.dm_exec_requests (Transact-SQL)

#query-processing#architecture
Cache subsystem safety guidelines
Architecture

Use of a write caching (also called write-back caching) storage controller can improve SQL Server

#query-processing#architecture
Checkpoint process
Architecture

No description available.

#query-processing#architecture
Closing packets
Architecture

This article presents examples of a network trace that captures the sequence during when a

#query-processing#architecture
Code guidelines
Architecture

No description available.

#query-processing#architecture
columnstore
Architecture

When the columnstore index compresses a rowgroup, it compresses each column segment

#query-processing#architecture
Compatibility levels
Architecture

Replace remote servers by using linked servers.

#query-processing#architecture
Concurrency effects
Architecture

protecting all reads with locks. By using row versioning, the chance that a read operation

#query-processing#architecture
data files
Architecture

The number of files depends on the number of (logical) processors on the machine. As a

#query-processing#architecture
Database Engine
Architecture

Starting with SQL Server 2005 (9.x), the Database Engine offers an implementation of an existing

#query-processing#architecture
databases?
Architecture

No description available.

#query-processing#architecture
DCM and BCM pages
Architecture

No description available.

#query-processing#architecture
Degree of parallelism (DOP)
Architecture

The serial execution plan is trivial, or does not exceed the cost threshold for parallelism

#query-processing#architecture
Diagnostic walkthrough
Architecture

sys.dm_os_spinlock_stats

#query-processing#architecture
Disable ghost cleanup
Architecture

No description available.

#query-processing#architecture
Discontinued features in SQL Server 2019 (15.x)
Architecture

(Python package in SQL Server Machine Learning Services)

#query-processing#architecture
Discontinued features in SQL Server 2022 (16.x)
Architecture

This article describes the Database Engine features that are no longer available in SQL Server.

#query-processing#architecture
Distributed query architecture
Architecture

operations, where each key range is estimated to cover similar numbers of rows. For

#query-processing#architecture
Effects of min memory per query
Architecture

### Server configuration: min memory

#query-processing#architecture
Enable and disable
Architecture

The following table summarizes the availability and the enabled state of optimized locking

#query-processing#architecture
Example
Architecture

Table Partition 3: A >= 20 AND A < 30

#query-processing#architecture
Example A
Architecture

statement is executed under a transaction.

#query-processing#architecture
Example B
Architecture

statement is executed under the transaction that is still active under session

#query-processing#architecture
Example network trace
Architecture

No description available.

#query-processing#architecture
Examples
Architecture

Some of the more common causes for increased CPU consumption include:

#query-processing#architecture
Execution plan caching and reuse
Architecture

### Extended Stored Procedures

#query-processing#architecture
Extended stored procedures programming
Architecture

Level0type = 'type' and Level0type =

#query-processing#architecture
Extents
Architecture

The index key of a clustered index can't contain

#query-processing#architecture
Failed components after an upgrade
Architecture

You might see the following behavior after the upgrade:

#query-processing#architecture
features in SQL Server 2019
Architecture

2019 (15.x)

#query-processing#architecture
FILE_FLAG_WRITE_THROUGH
Architecture

data modification statements generate logical page writes.

#query-processing#architecture
GAM and SGAM pages
Architecture

No description available.

#query-processing#architecture
Hot add CPU
Architecture

Microsoft Windows uses a numeric priority system that ranges from 1 through 31 to schedule

#query-processing#architecture
How SQL Server writes a modified data page
Architecture

No description available.

#query-processing#architecture
IAM pages
Architecture

No description available.

#query-processing#architecture
inline)
Architecture

No description available.

#query-processing#architecture
Interpret execution plans for collocated joins
Architecture

The Showplan methods

#query-processing#architecture
LAQ heuristics
Architecture

Lock after qualification (LAQ)

#query-processing#architecture
Large row support
Architecture

No description available.

#query-processing#architecture
Linked servers
Architecture

Always On availability groups

#query-processing#architecture
Local variables
Architecture

'Parameter sensitivity, also known as "parameter sniffing", refers to a process whereby SQL'

#query-processing#architecture
Mechanical hard drives
Architecture

Other drive implementations, such as IDE, ATA, and SATA:

#query-processing#architecture
Merge page
Architecture

causes the index page to split.

#query-processing#architecture
No cache workflow
Architecture

No description available.

#query-processing#architecture
Optimize SELECT statements
Architecture

No description available.

#query-processing#architecture
Override degrees of parallelism
Architecture

No description available.

#query-processing#architecture
Pad rows to ensure each row occupies a full page
Architecture

One possible strategy for avoiding excessive page latch contention is to pad rows with a

#query-processing#architecture
Page and extent architecture guide
Architecture

No description available.

#query-processing#architecture
Parallel query example
Architecture

No description available.

#query-processing#architecture
Parallel query execution strategy for partitioned objects
Architecture

In this case, multiple worker threads on the outer side of the join each read and work on a

#query-processing#architecture
Parallel query processing
Architecture

In this case, SQL Server doesn't use the value 100 to optimize the query. It uses a general

#query-processing#architecture
Parameter sensitivity
Architecture

Preparing a statement is more effective if parameter markers are used. For example, assume

#query-processing#architecture
Parameters and execution plan reuse
Architecture

The use of parameters, including parameter markers in ADO, OLE DB, and ODBC applications,

#query-processing#architecture
PFS pages
Architecture

Uniform extent, or full mixed extent

#query-processing#architecture
Prepare SQL statements
Architecture

equivalent but differ only in their parameter values. Conversely, you can specify that forced

#query-processing#architecture
Query behavior changes with optimized locking and RCSI
Architecture

Lock after qualification is not used in the following scenarios:

#query-processing#architecture
Query considerations
Architecture

### sys.dm_db_index_usage_stats

#query-processing#architecture
Query deprecated features
Architecture

2019 (15.x)

#query-processing#architecture
Query sys.dm_os_waiting_tasks ordered by wait duration
Architecture

No description available.

#query-processing#architecture
Range scan query
Architecture

No description available.

#query-processing#architecture
Read data damage and wear leveling
Architecture

A newly formatted drive usually holds all zeros.

#query-processing#architecture
Read data pages
Architecture

No description available.

#query-processing#architecture
Recompile execution plans
Architecture

An ad hoc execution plan is inserted and isn't referenced again before memory pressure

#query-processing#architecture
Remote servers
Architecture

No description available.

#query-processing#architecture
Remove execution plans from the plan cache
Architecture

No description available.

#query-processing#architecture
SCSI, SAS, and NVMe
Architecture

### Windows Hardware Compatibility Program

#query-processing#architecture
Security
Architecture

Specifying the SQLOLEDB provider for linked servers.

#query-processing#architecture
Security cache objects
Architecture

7.

#query-processing#architecture
Security cache stores
Architecture

name. There's one user token per database for a login.

#query-processing#architecture
segments
Architecture

No description available.

#query-processing#architecture
Server 2012
Architecture

Large columnstore index queries

#query-processing#architecture
Space used in data rows
Architecture

The online index build version store is used for online index builds.

#query-processing#architecture
Space used in large objects
Architecture

If the size is large, the entire old row version is stored in a separate internal table.

#query-processing#architecture
Space used in tempdb
Architecture

are detected, they're handled and retried

#query-processing#architecture
Split page
Architecture

Point lookups are similar to B-trees, except that because pages are linked in only one direction,

#query-processing#architecture
Stack sizes
Architecture

Memory for thread stacks , CLR , extended procedure .dll files, the OLE DB providers

#query-processing#architecture
Step 1. TCP three-way handshake
Architecture

No description available.

#query-processing#architecture
Step 3. SSL/TLS handshake
Architecture

Both the client driver and SQL Server need to know a bit about each other.

#query-processing#architecture
Step 6. Execute a command and read the response
Architecture

No description available.

#query-processing#architecture
Step 7. TCP four-way closing handshake
Architecture

Microsoft drivers use the four-way handshake to close connections. Many third-party

#query-processing#architecture
Steps to resolve
Architecture

1. If the MSTVF is single statement only, convert to an inline table valued function.

#query-processing#architecture
Supported features
Architecture

No description available.

#query-processing#architecture
Symptoms
Architecture

Periodic spikes in CPU were observed, which pushed the CPU utilization to nearly 100%. A

#query-processing#architecture
System tables
Architecture

fn_servershareddrives

#query-processing#architecture
System views
Architecture

numbered_procedure_parameters

#query-processing#architecture
tables
Architecture

The performance of a hash index is:

#query-processing#architecture
Trace flag 1204 and trace flag 1222
Architecture

No description available.

#query-processing#architecture
Trace flag 1204 example
Architecture

Identifies the database lock.

#query-processing#architecture
Trace flag 1222 example
Architecture

The following example shows the output when trace flag 1222 is turned on.

#query-processing#architecture
Trace Management Objects
Architecture

and CONCAT_NULLS_YIELDS_NULL

#query-processing#architecture
Transact-SQL
Architecture

The use of the vardecimal storage format.

#query-processing#architecture
Transact-SQL statements and closing packets
Architecture

This example shows closing a nonpooled connection, after two Transact-SQL statements. If

#query-processing#architecture
Types of concurrency
Architecture

No description available.

#query-processing#architecture
Use hints with views
Architecture

Hints that are placed on views in a query might conflict with other hints that are discovered

#query-processing#architecture
Use storage caches with SQL Server
Architecture

Most storage device caching controllers perform write caching.

#query-processing#architecture
What happens when you have too many VLFs?
Architecture

No description available.

#query-processing#architecture
Workers
Architecture

represents the unit of work that needs to be completed to fulfill the request.

#query-processing#architecture
Write caching in storage controllers
Architecture

A component in the I/O path (for example, a driver, controller, or firmware) can cause long I/Os

#query-processing#architecture

Index Architecture

Clustered index architecture
Architecture

No description available.

#index-architecture#architecture
Clustered index design guidelines
Architecture

No description available.

#index-architecture#architecture
Columnstore index architecture
Architecture

The following example creates a table with columns of different data types.

#index-architecture#architecture
Configure the hash index bucket count
Architecture

The interplay of the hash index and the buckets is summarized in the following image.

#index-architecture#architecture
Customize locking for an index
Architecture

No description available.

#index-architecture#architecture
Filtered index design guidelines
Architecture

constraint can't be created if duplicate

#index-architecture#architecture
Filtered indexes for heterogeneous data
Architecture

is valid for the following query.

#index-architecture#architecture
Filtered indexes for subsets of data
Architecture

Creating a filtered index can reduce disk storage for nonclustered indexes when a full-

#index-architecture#architecture
Guidelines for indexes with included columns
Architecture

No description available.

#index-architecture#architecture
Index architecture and design guide
Architecture

No description available.

#index-architecture#architecture
Index basics
Architecture

Think about a regular book: at the end of the book, there's an index that helps to quickly locate

#index-architecture#architecture
Index characteristics
Architecture

Examine column uniqueness.

#index-architecture#architecture
Index design tasks
Architecture

No description available.

#index-architecture#architecture
index key range
Architecture

pages can occur if you have relatively few data files in a filegroup and a large number of CPU

#index-architecture#architecture
Index metadata
Architecture

The performance of a nonclustered index is better than with hash indexes when querying a

#index-architecture#architecture
Index sort order design guidelines
Architecture

No description available.

#index-architecture#architecture
Key and included columns in filtered indexes
Architecture

covers the following query because the query results

#index-architecture#architecture
Memory-optimized hash index architecture
Architecture

### Configure the hash index bucket

#index-architecture#architecture
Memory-optimized hash index design guidelines
Architecture

A nonclustered index contains a copy of part or all of the rows and columns in the underlying

#index-architecture#architecture
Memory-optimized nonclustered index architecture
Architecture

read the older version of the row, and so avoid the performance slowdown associated with a

#index-architecture#architecture
Nonclustered index architecture
Architecture

No description available.

#index-architecture#architecture
Nonclustered index design guidelines
Architecture

No description available.

#index-architecture#architecture
Option: Use a GUID as the leading key column of the index
Architecture

No description available.

#index-architecture#architecture
Parallel index operations
Architecture

No description available.

#index-architecture#architecture
Partitioned indexes
Architecture

Hash or nonclustered for memory-optimized tables

#index-architecture#architecture
Performance considerations for indexes with included columns
Architecture

No description available.

#index-architecture#architecture
Read index pages
Architecture

The storage engine reads index pages serially in key order.

#index-architecture#architecture
Resolve indexes on views
Architecture

is defined as shown in the following:

#index-architecture#architecture
Skip index locks (SIL)
Architecture

With TID locking, short-duration exclusive (

#index-architecture#architecture
tables and indexes
Architecture

DB provider, thereby limiting users to only those data sources referenced by linked server

#index-architecture#architecture
Unique index design guidelines
Architecture

Fewer index rows fit on a page. This increases disk I/O and reduces cache efficiency.

#index-architecture#architecture
Use hints with indexed views
Architecture

The estimated cost for using the index has the lowest cost of any access mechanisms

#index-architecture#architecture
Use included columns in nonclustered indexes
Architecture

No description available.

#index-architecture#architecture

Memory Management

Address Windows Extensions (AWE) memory
Architecture

grow.

#memory-management#architecture
Analyze current wait buffer latches
Architecture

No description available.

#memory-management#architecture
Appendix: Automate memory dump capture
Architecture

No description available.

#memory-management#architecture
Buffer management
Architecture

, the initial memory grant can't be exceeded under any condition. If

#memory-management#architecture
Changes to memory management starting with
Architecture

In older versions of SQL Server, memory allocation was done using five different mechanisms:

#memory-management#architecture
Dynamic memory management
Architecture

2005 (9.x), SQL Server 2008

#memory-management#architecture
Dynamic partition of memory objects
Architecture

page protection because it's affected by every byte of the page, however, it's moderately

#memory-management#architecture
Effects of min and max server memory
Architecture

The instance of SQL Server adjusts its memory consumption. If another application is stopped

#memory-management#architecture
Memory pressure detection
Architecture

No description available.

#memory-management#architecture
memory setting
Architecture

No description available.

#memory-management#architecture
Memory, threads, and internal scheduling
Architecture

Use these guides to understand how SQL Server stores, accesses, and maintains data on disk.

#memory-management#architecture
Windows Virtual Memory Manager
Architecture

No description available.

#memory-management#architecture

Locking

Appendix: Capture spinlock statistics over time
Architecture

The following script can be used to look at spinlock statistics over a specific time period. Each

#locking#architecture
Avoid locking hints
Architecture

enabled, and the number of queries where LAQ wasn't used for various reasons. This

#locking#architecture
Bulk update locks
Architecture

Protects requested or acquired shared locks on all resources lower in the hierarchy and intent

#locking#architecture
Cause a deadlock
Architecture

No description available.

#locking#architecture
Conversion locks
Architecture

No description available.

#locking#architecture
Customize the lock time-out
Architecture

No description available.

#locking#architecture
Deadlock detection
Architecture

No description available.

#locking#architecture
Deadlock extended event
Architecture

and continue. The 1205 (deadlock victim) error records information about the type of resources

#locking#architecture
Deadlocks
Architecture

No description available.

#locking#architecture
Delete operation without optimized locking
Architecture

ensures that no new names beginning with the letter

#locking#architecture
Diagnose spinlock contention
Architecture

No description available.

#locking#architecture
Diagnostic additions for optimized locking
Architecture

No description available.

#locking#architecture
Dynamic locking
Architecture

No description available.

#locking#architecture
Exclusive locks
Architecture

The Database Engine places update (

#locking#architecture
Handle deadlocks
Architecture

SQL Profiler has an event that presents a graphical depiction of the tasks and resources

#locking#architecture
Implement and monitor lock partitioning
Architecture

executed, based on the characteristics of the schema and query.

#locking#architecture
Insert operation without optimized locking
Architecture

No description available.

#locking#architecture
Intent locks
Architecture

No description available.

#locking#architecture
Key-range lock modes
Architecture

Key-range locks protect a range of rows implicitly included in a record set being read by a

#locking#architecture
Lock after qualification (LAQ)
Architecture

If optimized locking is enabled, the request holds only a single

#locking#architecture
Lock compatibility
Architecture

No description available.

#locking#architecture
Lock escalation
Architecture

No description available.

#locking#architecture
Lock escalation with mixed lock types
Architecture

No description available.

#locking#architecture
Lock escalation without optimized locking
Architecture

Lock escalation behaves differently depending on whether

#locking#architecture
Lock granularity and hierarchies
Architecture

No description available.

#locking#architecture
Locking and row versioning basics
Architecture

No description available.

#locking#architecture
Locking hints
Architecture

### Avoid locking hints with optimized locking

#locking#architecture
Locking in the Database Engine
Architecture

No description available.

#locking#architecture
Locking overview
Architecture

Optimized locking is enabled per database. Connect to your database, then use the following

#locking#architecture
Log blocks
Architecture

Additionally, SQL Server can log a

#locking#architecture
Modify data with optimized locking
Architecture

No description available.

#locking#architecture
Modify data without optimized locking
Architecture

Not in the list of the transactions active when the snapshot transaction started.

#locking#architecture
Monitor lock escalation
Architecture

No description available.

#locking#architecture
Optimized locking and deadlocks
Architecture

No description available.

#locking#architecture
Reduce locking and lock escalation
Architecture

) locks on the clustered index pages containing those rows.

#locking#architecture
Symptoms and causes of spinlock contention
Architecture

No description available.

#locking#architecture
Transaction ID (TID) locking
Architecture

No description available.

#locking#architecture
Understand deadlocks
Architecture

No description available.

#locking#architecture
Update locks
Architecture

No description available.

#locking#architecture
What is optimized locking?
Architecture

2025 (17.x)

#locking#architecture
Work with lock partitioning
Architecture

Lock partitioning is enabled automatically on the Database Engine instances with a larger number

#locking#architecture

Io Fundamentals

A. Work with SNAPSHOT isolation
Architecture

No description available.

#io-fundamentals#architecture
Adding a remote replication distributor fails
Architecture

No description available.

#io-fundamentals#architecture
Advanced transaction information
Architecture

There are a few cases where disallowing page or row locking can be beneficial, if the access

#io-fundamentals#architecture
Archived documentation for old versions of SQL Server
Architecture

2016 (13.x) and later versions

#io-fundamentals#architecture
Avoid higher isolation levels
Architecture

transaction is completed. After the first transaction commits or rolls back, the second

#io-fundamentals#architecture
B. Work with READ COMMITTED isolation using row versioning
Architecture

No description available.

#io-fundamentals#architecture
Batch mode execution
Architecture

No description available.

#io-fundamentals#architecture
Behavior in summary
Architecture

The following table summarizes the differences between

#io-fundamentals#architecture
Behavior when reading data
Architecture

No description available.

#io-fundamentals#architecture
Cache considerations and SQLIOSim
Architecture

Listen closely to your hardware manufacturer's guidance.

#io-fundamentals#architecture
Calculate waits over a time period
Architecture

The following script calculates and returns latch waits over a time period.

#io-fundamentals#architecture
Causes of long I/O requests
Architecture

All I/Os are issued in the calling threads unless the affinity I/O option is in use. The

#io-fundamentals#architecture
Checkpoints and the active portion of the log
Architecture

Taking a log backup every 15 to 30 minutes might be enough.

#io-fundamentals#architecture
Checksum protection
Architecture

and the command that triggered the read continues. If the retry attempts fail, the command

#io-fundamentals#architecture
Circular nature of the transaction log
Architecture

No description available.

#io-fundamentals#architecture
Collations
Architecture

No description available.

#io-fundamentals#architecture
Column considerations
Architecture

No description available.

#io-fundamentals#architecture
Connectivity and authentication
Architecture

Describes threading and task concepts in the context of OS scheduling. It

#io-fundamentals#architecture
Constant folding and expression evaluation
Architecture

No description available.

#io-fundamentals#architecture
contention
Architecture

No description available.

#io-fundamentals#architecture
Control transactions
Architecture

that leave the data in a consistent state relative to the organization's business rules. The

#io-fundamentals#architecture
Customize transaction isolation level
Architecture

an application doesn't trap the error, the application can proceed unaware that an individual

#io-fundamentals#architecture
Data conversion operators in the filter predicate
Architecture

A column in the filtered index expression should be a key or included column in the filtered

#io-fundamentals#architecture
Database considerations
Architecture

No description available.

#io-fundamentals#architecture
Database options
Architecture

option.

#io-fundamentals#architecture
Discover long-running transactions
Architecture

No description available.

#io-fundamentals#architecture
Disk I/O
Architecture

I/O fundamentals

#io-fundamentals#architecture
Display partition information by using other Showplan methods
Architecture

No description available.

#io-fundamentals#architecture
Each partition can have multiple delta rowgroups
Architecture

state. A background process named the tuple-mover

#io-fundamentals#architecture
Enable row versioning-based isolation levels
Architecture

No description available.

#io-fundamentals#architecture
End transactions
Architecture

manager reported a failure to prepare, the transaction manager sends a rollback command

#io-fundamentals#architecture
Escalation threshold for a Transact-SQL statement
Architecture

No description available.

#io-fundamentals#architecture
Examples of compile-time expression evaluation
Architecture

No description available.

#io-fundamentals#architecture
Expression evaluation
Architecture

Nonconstant expressions such as an expression whose result depends on the value of a

#io-fundamentals#architecture
Factors affecting latch contention
Architecture

later in this article.

#io-fundamentals#architecture
Features deprecated in a future version of SQL Server
Architecture

No description available.

#io-fundamentals#architecture
Features deprecated in the next version of SQL Server
Architecture

2016 (13.x) and later versions

#io-fundamentals#architecture
File system configuration
Architecture

For more information, see:

#io-fundamentals#architecture
Forced parameterization
Architecture

When processing complex Transact-SQL statements, the relational engine can have difficulty

#io-fundamentals#architecture
Full-Text queries and populations fail after upgrade
Architecture

No description available.

#io-fundamentals#architecture
Guidelines for using forced parameterization
Architecture

Fixed-point numeric literals that are parts of predicates that involve comparison operators

#io-fundamentals#architecture
Hash partitioning script
Architecture

No description available.

#io-fundamentals#architecture
Idle or pooled connection being closed
Architecture

The connection is closed 10 seconds after the previous keep-alive exchange (see

#io-fundamentals#architecture
Implicit transactions and avoiding concurrency and resource problems
Architecture

Don't open a transaction while browsing through data, if at all possible. Transactions

#io-fundamentals#architecture
Indicators of latch contention
Architecture

3.

#io-fundamentals#architecture
Isolate the object causing latch contention
Architecture

No description available.

#io-fundamentals#architecture
Isolation levels in the Database Engine
Architecture

No description available.

#io-fundamentals#architecture
Keep using version 1
Architecture

No description available.

#io-fundamentals#architecture
Last page/trailing page insert contention
Architecture

No description available.

#io-fundamentals#architecture
Latch contention on page free space (PFS) pages
Architecture

The combination of a shallow B-Tree and random inserts across the index is prone to causing

#io-fundamentals#architecture
Limitations of transactions using row versioning-based isolation levels
Architecture

Consider the following limitations when working with row versioning-based isolation levels:

#io-fundamentals#architecture
Log truncation
Architecture

This cycle repeats endlessly, as long as the end of the logical log never reaches the beginning

#io-fundamentals#architecture
Monitor row versioning and the version store
Architecture

Enough disk space should be allocated to accommodate this requirement.

#io-fundamentals#architecture
New partition-aware seek operation
Architecture

No description available.

#io-fundamentals#architecture
Nonfoldable expressions
Architecture

compilation so that the resulting execution plan is more efficient. This is referred to as constant

#io-fundamentals#architecture
Options and workarounds
Architecture

No description available.

#io-fundamentals#architecture
Outer and inner transactions
Architecture

An explicit inner transaction can be started within an explicit outer transaction. This is primarily

#io-fundamentals#architecture
Partition information enhancements
Architecture

into the clustered index on column b to find the rows that meet the condition

#io-fundamentals#architecture
Partitioned attribute
Architecture

No description available.

#io-fundamentals#architecture
Performance when latch contention is resolved
Architecture

No description available.

#io-fundamentals#architecture
Previous versions
Architecture

No description available.

#io-fundamentals#architecture
Replication components fail after an upgrade
Architecture

2025 (17.x)

#io-fundamentals#architecture
Replication transactions
Architecture

The active log must include every part of all uncommitted transactions.

#io-fundamentals#architecture
Resolve distributed partitioned views
Architecture

No description available.

#io-fundamentals#architecture
Security cache invalidations
Architecture

tokens. All different securables inside the database.

#io-fundamentals#architecture
Server Configuration Options
Architecture

A master key must exist and password must be correct.

#io-fundamentals#architecture
Simple parameterization
Architecture

However, it can be parameterized according to simple parameterization rules. When forced

#io-fundamentals#architecture
Space used by the persistent version store (PVS)
Architecture

Each database row might use up to 14 bytes at the end of the row for row versioning

#io-fundamentals#architecture
Start transactions
Architecture

Using API functions and Transact-SQL statements, you can start transactions as explicit,

#io-fundamentals#architecture
Storage engine architecture and I/O
Architecture

internals and architecture

#io-fundamentals#architecture
Stored procedure and trigger execution
Architecture

No description available.

#io-fundamentals#architecture
Support for I/O issues
Architecture

When you enable write caching without proper safeguards, some storage subsystems

#io-fundamentals#architecture
System stored procedures and functions
Architecture

c2 audit option default trace enabled

#io-fundamentals#architecture
Tools and methods for diagnosing latch contention
Architecture

No description available.

#io-fundamentals#architecture
Trade-offs when using hash partitioning
Architecture

No description available.

#io-fundamentals#architecture
Transaction basics
Architecture

No description available.

#io-fundamentals#architecture
Transaction log file size management
Architecture

Hot add CPU is the ability to dynamically add CPUs to a running system.

#io-fundamentals#architecture
Transaction log logical architecture
Architecture

No description available.

#io-fundamentals#architecture
Transaction log physical architecture
Architecture

To roll forward the logical operation, the operation is performed again.

#io-fundamentals#architecture
Transactional integrity and SQL Server recovery
Architecture

caching mechanisms can't guarantee writes across a power cycle or similar failure point. They

#io-fundamentals#architecture
Typical scenarios
Architecture

Spinlock contention can occur for any number of reasons that might be unrelated to database

#io-fundamentals#architecture
Use bound sessions
Architecture

Bound sessions ease the coordination of actions across multiple sessions on the same server.

#io-fundamentals#architecture
Use hash partitioning with a computed column
Architecture

No description available.

#io-fundamentals#architecture
Use of the lightweight pooling option
Architecture

affinity mask option

#io-fundamentals#architecture
Use row versioning-based isolation levels
Architecture

isolation transactions isn't activated. No

#io-fundamentals#architecture
Use single transactions for permission modifications
Architecture

Given the high-level invalidation nature of security caches (database/server level), perform

#io-fundamentals#architecture
View resolution
Architecture

No description available.

#io-fundamentals#architecture
Virtual log file creation
Architecture

No description available.

#io-fundamentals#architecture
Walkthrough: Diagnose a latch contention
Architecture

Allows the use of other partitioning features, such as archiving data using a sliding

#io-fundamentals#architecture
What hash partitioning with a computed column does
Architecture

The following sample script can be customized for purposes of your implementation:

#io-fundamentals#architecture
What is SQL Server latch contention?
Architecture

No description available.

#io-fundamentals#architecture
What's new in SQL Server installation
Architecture

Installation is supported on x64 processors only.

#io-fundamentals#architecture
When to use bound sessions
Architecture

Only one session in a set of bound sessions can be active at any time. If one session is executing

#io-fundamentals#architecture
Write-ahead transaction log
Architecture

The second diagram shows how the log appears after being truncated. Virtual log 1 and virtual

#io-fundamentals#architecture

Collation

Add data files
Architecture

This topic describes how to add data or log files to a database in SQL Server by using SQL Server Management Studio or Transact-SQL.

#collation#add-data-files
Attach a Database
Architecture

This article describes how to attach a database in SQL Server with SQL Server Management Studio or Transact-SQL.

#collation#attach-a-database
Backup & Restore
Architecture

In SQL Server, you can create a new database by restoring a backup of a user database created by using SQL Server 2005 (9.x) or a later version. Howev

#collation#backup-restore
Change configuration settings
Architecture

This topic describes how to change database-level options in SQL Server by using SQL Server Management Studio or Transact-SQL. The

#collation#change-configuration-settings
Change Tracking page
Architecture

Use this page to view or modify change tracking settings for the selected database.

#collation#change-tracking-page
Column Collation
Architecture

You can override the database collation for , , , , , and data by specifying a differe

#collation#column-collation
Compatibility level
Architecture

This article describes how to view or change the compatibility level of a database in SQL Ser

#collation#compatibility-level
Configurations page
Architecture

No description available.

#collation#configurations-page
Copy Database Wizard
Architecture

06/16/2025 The Copy Database Wizard moves or copies databases and certain server objects easily from one instance of SQL Server to another instance, with no server downtime.

#collation#copy-database-wizard
Copy Databases to Other Servers
Architecture

Sometimes you might find it useful to copy a database from one computer to another. Reasons include testing, checking consistency, developing software

#collation#copy-databases-to-other-servers
Create
Architecture

The only way to create a SQL Server database snapshot is to use Transact-SQL. SQL Server Management Studio doesn't support the creation of database snapshots.

#collation#create
Create a database
Architecture

08/07/2025 This article describes how to create a database in SQL Server by using SQL Server Management Studio or Transact-SQL. To create a database in Azure SQL Database u

#collation#create-a-database
Database Collation
Architecture

This article describes how to set or change the database collation by using Management Studio (SSMS) or Transact-SQL. If no databa

#collation#database-collation
Database Detach & Attach
Architecture

The data and transaction log files of a database can be detached and then reattached to the same or another instance of SQL Server.

#collation#database-detach-attach
Database snapshots
Architecture

A database snapshot is a read-only, static view of a SQL Server database (the source database). It's transactionally consistent with the source databa

#collation#database-snapshots
Delete a database
Architecture

This article describes how to delete a user-defined database in SQL Server by using SQL Server Management Studio or Transact-S

#collation#delete-a-database
Delete data or log files from a database
Architecture

This topic describes how to delete data or log files in SQL Server by using SQL Server Management Studio or Transact-SQL.

#collation#delete-data-or-log-files-from-a-database
Detach & attach (T-SQL)
Architecture

This topic describes how to move a detached database to another location and re-attach it to the same or a different server instance in SQL Server. Ho

#collation#detach-attach-t-sql
Detach a Database
Architecture

This article describes how to detach a database in SQL Server with SQL Server Management Studio or Transact-SQL.

#collation#detach-a-database
Display data & log space information for a database
Architecture

No description available.

#collation#display-data-log-space-information-for-a-database
Drop
Architecture

Dropping a database snapshot deletes the database snapshot from SQL Server and deletes the sparse files that are used by the snapshot. When you drop a

#collation#drop
Extended Properties Page
Architecture

Extended properties allow you to add custom properties to database objects. Use this page to view or m

#collation#extended-properties-page
File states
Architecture

In SQL Server, the state of a database file i

#collation#file-states
Filegroups page
Architecture

Use this page to view the filegroups or add a new filegroup to the selected database. Filegroup types are separated into row filegroups, FILESTREAM

#collation#filegroups-page
Files & filegroups
Architecture

At a minimum, every SQL Server database has two operating system files: a data file and a log file.

#collation#files-filegroups
Files page
Architecture

Use this page to create a new database, or view or modify properties for the selected database.

#collation#files-page
General page
Architecture

10/21/2025 Use this page to view or modify properties for the selected database. Displays the date that the database was last backed up. Display

#collation#general-page
Identifiers
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft F

#collation#identifiers
Increase the size of a database
Architecture

This article describes how to increase the size of a database in SQL Server by using SQL Server Management Studio or Transact-SQL.

#collation#increase-the-size-of-a-database
Instant file initialization
Architecture

No description available.

#collation#instant-file-initialization
Manage metadata
Architecture

This article is relevant in the following situations: Configuring the availability replicas of an Always On availability groups availability group. S

#collation#manage-metadata
Manage properties
Architecture

This topic describes how to view or change the properties of a database in SQL Server by using SQL Ser

#collation#manage-properties
master
Architecture

The database records all the system-level information for a SQL Server system. This includes instance

#collation#master
Migrate to a partially contained database
Architecture

This topic discusses how to prepare to change to the partially contained database model and then provides the migration steps. Preparing to Migrate a

#collation#migrate-to-a-partially-contained-database
Mirroring page
Architecture

Access this page from the principal database, and use it to configure and to modify the properties of database mirroring for a database. Also use it t

#collation#mirroring-page
model
Architecture

The database is used as the template for all databases created on an instance of SQL Server.

#collation#model
Modified Features
Architecture

The following features have been modified to be supported by a partially contained database. Features are usually modified

#collation#modified-features
Move files
Architecture

In SQL Server, you can move system and user databases by specifying the new file location in the clause of the ALTER DATABASE statement. Data,

#collation#move-files
msdb
Architecture

The database is used by SQL Server Agent for scheduling alerts and jobs and by other features such as SQL Server Manageme

#collation#msdb
Of a clustered index
Architecture

No description available.

#collation#of-a-clustered-index
Of a Database
Architecture

No description available.

#collation#of-a-database
Of a heap
Architecture

No description available.

#collation#of-a-heap
Of a nonclustered index
Architecture

Follow these steps to estimate the amount of space that is required to store a nonclustered

#collation#of-a-nonclustered-index
Of a Table
Architecture

No description available.

#collation#of-a-table
Options page
Architecture

Use this page to view or modify options for the selected database. For more information about the options available on this page, see ALTER DATABASE

#collation#options-page
Overview
Architecture

No description available.

#collation#overview
Query store page
Architecture

No description available.

#collation#query-store-page
Rebuild System Databases
Architecture

No description available.

#collation#rebuild-system-databases
Rename a database
Architecture

08/07/2025 This article describes how to rename a user-defined database in SQL Server, Azure SQL Database, or Azure SQL Manag

#collation#rename-a-database
Resource
Architecture

The Resource database is a read-only database that contains all the system objects that are included with SQL Server.

#collation#resource
Revert to a Snapshot
Architecture

No description available.

#collation#revert-to-a-snapshot
Security best practices
Architecture

Contained databases have some unique threats that should be understood and mitigated by SQL Server Database Engine adminis

#collation#security-best-practices
Server Collation
Architecture

The server collation acts as the default collation for all system databases that are installed with the instance of SQL Se

#collation#server-collation
Set a session language
Architecture

No description available.

#collation#set-a-session-language
Set single-user mode
Architecture

This article describes how to set a user-defined database to single-user mode in SQL Server by using SQL Server Management Studio or Transact-SQL. Sin

#collation#set-single-user-mode
Shrink a database
Architecture

This article describes how to shrink a database in SQL Server by using Object Explorer in SQL Server M

#collation#shrink-a-database
Shrink a file
Architecture

This article describes how to shrink a data or log file in SQL Server by using SQL Server Management S

#collation#shrink-a-file
Shrink the tempdb database
Architecture

This article discusses various methods that you can use to shrink the database in SQL Server. You can use any of the following methods to change

#collation#shrink-the-tempdb-database
States
Architecture

A database is always in one specif

#collation#states
Storing data files in Azure
Architecture

data files in Microsoft Azure SQL Server Data Files in Microsoft Azure enables native support for SQL Server database files stored as blobs.

#collation#storing-data-files-in-azure
System Databases
Architecture

This article describes how to move system databases in SQL Server.

#collation#system-databases
tempdb
Architecture

This article describes the system database, a global resource available to all users connec

#collation#tempdb
Transaction log shipping page
Architecture

Use this page to configure and modify the properties of log shipping for a database. For an explanation of log shipping concepts, see About Log Shipp

#collation#transaction-log-shipping-page
Upgrade a Database (T-SQL)
Architecture

This topic describes how to use detach and attach operations to upgrade a database in SQL Server.

#collation#upgrade-a-database-t-sql
User Databases
Architecture

No description available.

#collation#user-databases
User defined data type alias
Architecture

No description available.

#collation#user-defined-data-type-alias
Value for Extended Property
Architecture

Use the <property name> dialog box to enter or view a value.

#collation#value-for-extended-property
View
Architecture

This article explains how to view a SQL Server database snapshot using SQL Server Management Studio. 1. In Object Explorer, connect to the instance o

#collation#view
View Collation Information
Architecture

You can view the collation of a server, database, or column in SQL Server Management Studio

#collation#view-collation-information
View databases
Architecture

This article describes how to view a list of databases on an instance of SQL Server by using SQL Serve

#collation#view-databases
View size of sparse file
Architecture

This topic describes how to use Transact-SQL to verify that a SQL Server database file is a sparse file and to find out its actual and maximum sizes.

#collation#view-size-of-sparse-file
Write International T-SQL Statements
Architecture

Databases and database application

#collation#write-international-t-sql-statements

Tables

Add Columns
Architecture

No description available.

#tables#add-columns
Change Column Order
Architecture

No description available.

#tables#change-column-order
Change the schema
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Use the statement to add, alter, or remove a column. permis

#tables#change-the-schema
Column Properties
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Use

#tables#column-properties
Column Sets
Architecture

No description available.

#tables#column-sets
Considerations & limitations
Architecture

No description available.

#tables#considerations-limitations
Consistency checks
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance With temporal tables, the system performs several consistency

#tables#consistency-checks
Copy Columns
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Thi

#tables#copy-columns
Create relationships
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance This article describes how to create foreign key relationship

#tables#create-relationships
Delete Columns
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Thi

#tables#delete-columns
Delete relationships
Architecture

No description available.

#tables#delete-relationships
Disable constraints for replication
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#disable-constraints-for-replication
Disable constraints with INSERT & UPDATE
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#disable-constraints-with-insert-update
Disable for replication
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#disable-for-replication
Duplicate
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#duplicate
Getting started
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Depending on your scenario, you can either create new system-

#tables#getting-started
Lesson 1: Converting a Table to a Hierarchical Structure
Architecture

Customers who have tables using self joins to express hierarchical relationships can convert

#tables#lesson-1-converting-a-table-to-a-hierarchical-structure
Lesson 2: Creating & Managing Data in a Hierarchical Table
Architecture

In Lesson 1, you modified an existing table to use the data type, and populated the column

#tables#lesson-2-creating-managing-data-in-a-hierarchical-table
Memory-optimized temporal tables
Architecture

09/07/2025 SQL Server 2016 (13.x) and later System-versioned temporal tables for memory-optimized tables provide a cost-effective solution for scenarios w

#tables#memory-optimized-temporal-tables
Metadata views & functions
Architecture

No description available.

#tables#metadata-views-functions
Modify Columns
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#modify-columns
Modify data
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Data in a system-versioned temporal table is modified using r

#tables#modify-data
Modify relationships
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You can modify the foreign key side of a relationship in SQL

#tables#modify-relationships
Monitor
Architecture

2016 (13.x) and later You can use existing views to track detailed and summarized memory consumption for every system-vers

#tables#monitor
Partitioning
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You can use partitioning on both the current and the history

#tables#partitioning
Performance considerations
Architecture

2016 (13.x) and later This article discusses some specific performance considerations when using system-versioned memory-o

#tables#performance-considerations
Primary keys
Architecture

No description available.

#tables#primary-keys
Query data
Architecture

No description available.

#tables#query-data
Rename Columns
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You can rename a table column in SQL Server by using SQL Serv

#tables#rename-columns
Retention of historical data
Architecture

No description available.

#tables#retention-of-historical-data
Sparse Columns
Architecture

No description available.

#tables#sparse-columns
Specify Computed Columns
Architecture

No description available.

#tables#specify-computed-columns
Specify default values for Columns
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#specify-default-values-for-columns
Stop system-versioning
Architecture

No description available.

#tables#stop-system-versioning
Table Column Properties
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance The

#tables#table-column-properties
Table Properties
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Thi

#tables#table-properties
Table-Valued Parameters
Architecture

Table-valued parameters are declared by using user-defined table types. You can use table- v

#tables#table-valued-parameters
Temporal tables
Architecture

No description available.

#tables#temporal-tables
Unique constraints and check constraints
Architecture

constraints and constraints are two types of constraints that can be used to enforce data i

#tables#unique-constraints-and-check-constraints
Usage scenarios
Architecture

No description available.

#tables#usage-scenarios
Using hierarchyid data type
Architecture

No description available.

#tables#using-hierarchyid-data-type
View properties
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#view-properties
View Table Definition
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#view-table-definition
View the dependencies
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance You

#tables#view-the-dependencies
Work with
Architecture

2016 (13.x) and later This article discusses how working with a memory-optimized system-versioned temporal table is differ

#tables#work-with

Change Data Capture

Administer & monitor
Architecture

08/22/2025 This topic describes how to administer and monitor change data capture for SQL Server and Azure SQL Managed Instance. For Azure SQL D

#change-data-capture#administer-monitor
Capture Logon Trigger Event Data
Architecture

To capture XML data about events for use inside logon triggers, use the EVENTDATA function.

#change-data-capture#capture-logon-trigger-event-data
Change data capture (CDC)
Architecture

08/22/2025 In this article, learn about change data capture (CDC), which records activity on a database when tables and rows have been modified.

#change-data-capture#change-data-capture-cdc
Change tracking
Architecture

No description available.

#change-data-capture#change-tracking
Cleanup and troubleshooting
Architecture

08/22/2025 This article provides ways to troubleshoot common issues observed in change tracking auto cleanup.

#change-data-capture#cleanup-and-troubleshooting
Configure
Architecture

2025 (17.x) Azure SQL Managed Instance This article describes how to configure the change event streaming (CES) feature introduced in SQL Server 2025

#change-data-capture#configure
Create CLR Triggers
Architecture

You can create a database object inside SQL Server that is programmed in an assembly created in the .NET Framework common language runtime (CLR). Data

#change-data-capture#create-clr-triggers
Create DML Triggers
Architecture

This article describes how to create a Transact-SQL Data Manipulation Language (DML) trigger

#change-data-capture#create-dml-triggers
Create DML Triggers to Handle Multiple Rows of Data
Architecture

When you write the code for a DML trigger, consider that the statement that causes the trigge

#change-data-capture#create-dml-triggers-to-handle-multiple-rows-of-data
Create Nested Triggers
Architecture

Both DML and DDL triggers are nested when a trigger performs an action that initiates another

#change-data-capture#create-nested-triggers
DDL Event Groups
Architecture

The following tables list the DDL event groups that can be used to run a DDL trigger or an e

#change-data-capture#ddl-event-groups
DDL Events
Architecture

No description available.

#change-data-capture#ddl-events
DDL Triggers
Architecture

DDL triggers fire in response to various Data Definition Language (DDL) events. These events

#change-data-capture#ddl-triggers
Delete or Disable DML Triggers
Architecture

This topic describes how to delete or disable a DML trigger in SQL Server by using SQL Server

#change-data-capture#delete-or-disable-dml-triggers
DML Triggers
Architecture

The DML trigger is a special type of stored procedure that automatically takes effect when a

#change-data-capture#dml-triggers
Enable & disable
Architecture

08/22/2025 This article describes how to enable and disable change data capture (CDC) for a database and a table for SQL Server and Azure SQL Man

#change-data-capture#enable-disable
Frequently asked questions
Architecture

2025 (17.x) Azure SQL Managed Instance The following are answers to questions about the Change Event Streaming (CES) feature for SQL Server 2025 (17.x),

#change-data-capture#frequently-asked-questions
Get Information
Architecture

The catalog views listed in this section can be used to get information about DDL Triggers.

#change-data-capture#get-information
Get Information About DML Triggers
Architecture

This topic describes how to get information about DML triggers in SQL Server by using SQL Se

#change-data-capture#get-information-about-dml-triggers
Implement
Architecture

No description available.

#change-data-capture#implement
JSON message format
Architecture

2025 (17.x) Azure SQL Managed Instance This article describes the JSON format of a CloudEvents message that is streamed from SQL Server to Azure Event H

#change-data-capture#json-message-format
Known issues and errors
Architecture

10/07/2025 This article explains known limitations, issues, and errors with change data capture (CDC) for and . For Azure SQL Datab

#change-data-capture#known-issues-and-errors
Logon Triggers
Architecture

Logon triggers fire stored procedures in response to a event.

#change-data-capture#logon-triggers
Manage Trigger Security
Architecture

By default, both DML and DDL triggers execute under the context of the user that calls the t

#change-data-capture#manage-trigger-security
Modify or Rename DML Triggers
Architecture

This article describes how to modify or rename a DML trigger in SQL Server by using SQL Serv

#change-data-capture#modify-or-rename-dml-triggers
Specify First & Last Triggers
Architecture

You can specify that one of the AFTER triggers associated with a table be either the first AF

#change-data-capture#specify-first-last-triggers
Use the EVENTDATA Function
Architecture

No description available.

#change-data-capture#use-the-eventdata-function
Use the inserted & deleted Tables
Architecture

DML trigger statements use two special tables: the deleted and inserted tables. SQL Serve

#change-data-capture#use-the-inserted-deleted-tables
Work with change data capture
Architecture

08/22/2025 Change data is made available to change data capture consumers through table-valued functions (TVFs). All queries of these functions r

#change-data-capture#work-with-change-data-capture

Clr Integration

Accessing in ADO.NET
Architecture

User-defined types (UDTs) are written using any of the languages supported by the .NET Framework common language runtime (CLR) that produce verifiable code. This includes C#

#clr-integration#accessing-in-adonet
Accessing the Current Transaction
Architecture

No description available.

#clr-integration#accessing-the-current-transaction
Alter
Architecture

Assemblies that are registered in SQL Server can be updated from a more recent version using the statement. To update an assembly, use the statement

#clr-integration#alter
Architecture - CLR Hosted Environment
Architecture

integration with the .NET Framework common language runtime (CLR) enables database programmers to use languages

#clr-integration#architecture-clr-hosted-environment
Build
Architecture

You can build database objects using the SQL Server integration with the .NET Framework common language runtime (CLR). Managed code that runs inside o

#clr-integration#build
CLR Integration Security
Architecture

No description available.

#clr-integration#clr-integration-security
Coding
Architecture

No description available.

#clr-integration#coding
Collation & data types
Architecture

In the .NET Framework, the object handles collations. The .NET Framework string application programming interfaces (APIs) use the property associate

#clr-integration#collation-data-types
Command-Line Management Tool: SqlLocalDB.exe
Architecture

SqlLocalDB.exe 07/14/2025 SqlLocalDB.exe is a simple tool that enables the user to easily manage LocalDB instances from the command line.

#clr-integration#command-line-management-tool-sqllocaldbexe
Context Connection
Architecture

The problem of internal data access is a fairly common scenario. That is, you wish to access the same server on which your common language runtime (CL

#clr-integration#context-connection
Context vs. regular connections
Architecture

If you're connecting to a remote server, always use regular connections rather than context connections.

#clr-integration#context-vs-regular-connections
Custom attributes for CLR routines
Architecture

No description available.

#clr-integration#custom-attributes-for-clr-routines
Data access from CLR database objects
Architecture

No description available.

#clr-integration#data-access-from-clr-database-objects
Data types in the .NET Framework
Architecture

data types in the .NET The library is part of the base class library of the .NET Framework. It provides data types with the same semantic

#clr-integration#data-types-in-the-net-framework
Debug
Architecture

provides support for debugging Transact-SQL and common language runtime (CLR) objects in the database. The key aspects of debugging in SQL

#clr-integration#debug
Defining UDT tables & columns
Architecture

Once the assembly containing the user-defined type (UDT) definition is registered in a SQL Server database, it can be used in a column definition. For

#clr-integration#defining-udt-tables-columns
Deploy
Architecture

Deployment is the process by which you distribute a finished application or module to be installed and run on another computer. Using Visual Studio, y

#clr-integration#deploy
Design
Architecture

No description available.

#clr-integration#design
Disallowed Types & Members in Microsoft.VisualBasic.dll
Architecture

No description available.

#clr-integration#disallowed-types-members-in-microsoftvisualbasicdll
Disallowed Types & Members in mscorlib.dll
Architecture

No description available.

#clr-integration#disallowed-types-members-in-mscorlibdll
Disallowed Types & Members in System.Core.dll
Architecture

No description available.

#clr-integration#disallowed-types-members-in-systemcoredll
Disallowed Types & Members in System.Data.dll
Architecture

No description available.

#clr-integration#disallowed-types-members-in-systemdatadll
Disallowed Types & Members in System.dll
Architecture

No description available.

#clr-integration#disallowed-types-members-in-systemdll
Error messages
Architecture

Express LocalDB error messages 07/14/2025 This section provides reference information about the following SQL Server Express LocalDB error messages: Description

#clr-integration#error-messages
Host Protection Attributes
Architecture

The common language runtime (CLR) provides a mechanism to annotate managed application programming interfaces (APIs) that are part of the .NET Framewo

#clr-integration#host-protection-attributes
Impersonation & credentials
Architecture

In the SQL Server common language runtime (CLR) integration, using Windows Authentication is complex, but is more secure than using SQL Server Authent

#clr-integration#impersonation-credentials
In-Process Specific Extensions
Architecture

in-process specific extensions There are four main functional extensions to ADO.NET that are specifically for in-process use. The followin

#clr-integration#in-process-specific-extensions
Instance APIs
Architecture

Express LocalDB instance APIs 07/14/2025 In the traditional, service-based SQL Server world, individual SQL Server instances installed on a single computer are p

#clr-integration#instance-apis
Integration
Architecture

The common language runtime (CLR) is the heart of the .NET Framework and provides the execution environment for all .NET F

#clr-integration#integration
Integration & transactions
Architecture

The namespace provides a transaction framework that is fully integrated with ADO.NET and SQL Server common language runtime (CLR) integration. and A

#clr-integration#integration-transactions
Integration Code Access Security
Architecture

07/23/2025 The common language runtime (CLR) supports a security model called code access security for managed code.

#clr-integration#integration-code-access-security
Integration programming concepts
Architecture

features the integration of the common language runtime (CLR) component of the .NET Framework for Windows. You

#clr-integration#integration-programming-concepts
Invoking functions
Architecture

In Transact-SQL statements, you can invoke common language runtime (CLR) user- defined aggregates, subject to all the rules that apply to system aggregate functions.

#clr-integration#invoking-functions
Large object (LOB) parameters
Architecture

Use and to pass large object (LOB) binary type ( ) and LOB character type ( ) parameters, respectively.

#clr-integration#large-object-lob-parameters
LocalDB API sample
Architecture

Express LocalDB reference 07/14/2025 This section contains information about the SQL Server Express LocalDB: SQL Server Express LocalDB error messages SQL Serve

#clr-integration#localdb-api-sample
LOCALDB_ERROR_ADMIN_RIGHTS_REQUIRED
Architecture

07/14/2025 Product Name Event ID 286 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Administrator p

#clr-integration#localdb-error-admin-rights-required
LOCALDB_ERROR_AUTO_INSTANCE_CREATE_FAILED
Architecture

07/14/2025 Product Name Event ID 280 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Cannot create

#clr-integration#localdb-error-auto-instance-create-failed
LOCALDB_ERROR_CALLER_IS_NOT_OWNER
Architecture

07/14/2025 Product Name Event ID 282 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text API caller is n

#clr-integration#localdb-error-caller-is-not-owner
LOCALDB_ERROR_CANNOT_ACCESS_INSTANCE_FOLDER
Architecture

07/14/2025 Product Name Event ID 261 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Cannot access

#clr-integration#localdb-error-cannot-access-instance-folder
LOCALDB_ERROR_CANNOT_ACCESS_INSTANCE_REGISTRY
Architecture

No description available.

#clr-integration#localdb-error-cannot-access-instance-registry
LOCALDB_ERROR_CANNOT_CREATE_INSTANCE_FOLDER
Architecture

07/14/2025 Product Name Event ID 256 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Cannot create

#clr-integration#localdb-error-cannot-create-instance-folder
LOCALDB_ERROR_CANNOT_CREATE_SQL_PROCESS
Architecture

07/14/2025 Product Name Event ID 268 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Error occurred

#clr-integration#localdb-error-cannot-create-sql-process
LOCALDB_ERROR_CANNOT_GET_USER_PROFILE_FOLDER
Architecture

07/14/2025 Product Name Event ID 259 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Cannot access t

#clr-integration#localdb-error-cannot-get-user-profile-folder
LOCALDB_ERROR_CANNOT_MODIFY_INSTANCE_REGISTRY
Architecture

No description available.

#clr-integration#localdb-error-cannot-modify-instance-registry
LOCALDB_ERROR_INSTANCE_ALREADY_SHARED
Architecture

07/14/2025 Product Name Event ID 284 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text The specified L

#clr-integration#localdb-error-instance-already-shared
LOCALDB_ERROR_INSTANCE_BUSY
Architecture

No description available.

#clr-integration#localdb-error-instance-busy
LOCALDB_ERROR_INSTANCE_CONFIGURATION_CORRUPT
Architecture

07/14/2025 Product Name Event ID 267 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Local Database

#clr-integration#localdb-error-instance-configuration-corrupt
LOCALDB_ERROR_INSTANCE_EXISTS_WITH_LOWER_VERSION
Architecture

No description available.

#clr-integration#localdb-error-instance-exists-with-lower-version
LOCALDB_ERROR_INSTANCE_FOLDER_PATH_TOO_LONG
Architecture

No description available.

#clr-integration#localdb-error-instance-folder-path-too-long
LOCALDB_ERROR_INSTANCE_STOP_FAILED
Architecture

07/14/2025 Product Name Event ID 271 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Stop operation

#clr-integration#localdb-error-instance-stop-failed
LOCALDB_ERROR_INSUFFICIENT_BUFFER
Architecture

No description available.

#clr-integration#localdb-error-insufficient-buffer
LOCALDB_ERROR_INTERNAL_ERROR
Architecture

No description available.

#clr-integration#localdb-error-internal-error
LOCALDB_ERROR_INVALID_INSTANCE_NAME
Architecture

07/14/2025 Product Name Event ID 283 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text The instance n

#clr-integration#localdb-error-invalid-instance-name
LOCALDB_ERROR_INVALID_PARAMETER
Architecture

07/14/2025 Product Name Event ID 257 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text The parameter

#clr-integration#localdb-error-invalid-parameter
LOCALDB_ERROR_NOT_INSTALLED
Architecture

No description available.

#clr-integration#localdb-error-not-installed
LOCALDB_ERROR_SHARED_NAME_TAKEN
Architecture

07/14/2025 Product Name Event ID 281 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text The specified s

#clr-integration#localdb-error-shared-name-taken
LOCALDB_ERROR_SQL_SERVER_STARTUP_FAILED
Architecture

07/14/2025 Product Name Event ID 266 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Error occurred

#clr-integration#localdb-error-sql-server-startup-failed
LOCALDB_ERROR_TOO_MANY_SHARED_INSTANCES
Architecture

No description available.

#clr-integration#localdb-error-too-many-shared-instances
LOCALDB_ERROR_UNKNOWN_ERROR_CODE
Architecture

07/14/2025 Product Name Event ID 272 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Error getting t

#clr-integration#localdb-error-unknown-error-code
LOCALDB_ERROR_UNKNOWN_INSTANCE
Architecture

07/14/2025 Product Name Event ID 263 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text The specified L

#clr-integration#localdb-error-unknown-instance
LOCALDB_ERROR_UNKNOWN_LANGUAGE_ID
Architecture

07/14/2025 Product Name Event ID 270 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Error getting

#clr-integration#localdb-error-unknown-language-id
LOCALDB_ERROR_UNKNOWN_VERSION
Architecture

07/14/2025 Product Name Event ID 269 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text The specified L

#clr-integration#localdb-error-unknown-version
LOCALDB_ERROR_VERSION_REQUESTED_NOT_INSTALLED
Architecture

07/14/2025 Product Name Event ID 273 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text The Local Data

#clr-integration#localdb-error-version-requested-not-installed
LOCALDB_ERROR_WAIT_TIMEOUT
Architecture

07/14/2025 Product Name Event ID 277 Event Source SQL Server Local Database Runtime 12.0 Component Local Database Runtime API Message Text Timeout occurre

#clr-integration#localdb-error-wait-timeout
LOCALDB_ERROR_XEVENT_FAILED
Architecture

No description available.

#clr-integration#localdb-error-xevent-failed
LocalDBCreateInstance
Architecture

07/14/2025 Creates a new SQL Server Express LocalDB instance. C++ [Input] The LocalDB version, for example 11.0 or 11.0.1094.2. [Input] The name for the LocalDB instance t

#clr-integration#localdbcreateinstance
LocalDBDeleteInstance
Architecture

07/14/2025 Removes the specified SQL Server Express LocalDB instance. C++ [Input] The name of the LocalDB instance to remove. [Input] Reserved for future use.

#clr-integration#localdbdeleteinstance
LocalDBFormatMessage
Architecture

07/14/2025 Returns the localized textual description for the specified SQL Server Express LocalDB error. C++ [Input] The LocalDB error code. [Input] The flags specifying t

#clr-integration#localdbformatmessage
LocalDBGetInstanceInfo
Architecture

No description available.

#clr-integration#localdbgetinstanceinfo
LocalDBGetInstances
Architecture

07/14/2025 Returns all SQL Server Express LocalDB instances with the given version. C++ [Output] When this function returns, contains the names of both named and default Lo

#clr-integration#localdbgetinstances
LocalDBGetVersionInfo
Architecture

No description available.

#clr-integration#localdbgetversioninfo
LocalDBGetVersions
Architecture

07/14/2025 Returns all SQL Server Express LocalDB versions available on the computer. C++ [Output] Contains names of the LocalDB versions that are available on the user's w

#clr-integration#localdbgetversions
LocalDBShareInstance
Architecture

07/14/2025 Shares the specified SQL Server Express LocalDB instance with other users of the computer, using the specified shared name. C++ [Input] The SID of the instance

#clr-integration#localdbshareinstance
LocalDBStartInstance
Architecture

07/14/2025 Starts the specified SQL Server Express LocalDB instance. C++ [Input] The name of the LocalDB instance to start. [Input] Reserved for future use.

#clr-integration#localdbstartinstance
LocalDBStartTracing
Architecture

07/14/2025 Enables tracing of API calls for all the SQL Server Express LocalDB instances owned by the current Windows user. C++ : The function succeeded. Description LOC

#clr-integration#localdbstarttracing
LocalDBStopInstance
Architecture

07/14/2025 Stops the specified SQL Server Express LocalDB instance from running. C++ [Input] The name of the LocalDB instance to stop.

#clr-integration#localdbstopinstance
LocalDBStopTracing
Architecture

07/14/2025 Disables tracing of API calls for all the SQL Server Express LocalDB instances owned by the current Windows user. C++ : The function succeeded. Description LO

#clr-integration#localdbstoptracing
LocalDBUnshareInstance
Architecture

07/14/2025 Stops the sharing of the specified SQL Server Express LocalDB instance. C++ [Input] The shared name for the LocalDB instance to unshare.

#clr-integration#localdbunshareinstance
Manipulating UDT data
Architecture

Transact-SQL provides no specialized syntax for , , or statements when modifying data in user-defined type (UDT) columns.

#clr-integration#manipulating-udt-data
Mapping parameter data
Architecture

No description available.

#clr-integration#mapping-parameter-data
Monitoring & troubleshooting
Architecture

This article provides information about the tools that can be used to monitor and troubleshoot managed database objects and assemblies running in SQL

#clr-integration#monitoring-troubleshooting
Nullability & three-value logic comparisons
Architecture

If you're familiar with the SQL Server data types, you find similar semantics and precision in the namespace in the .NET Framework.

#clr-integration#nullability-three-value-logic-comparisons
Performance
Architecture

This article discusses some of the design choices that enhance the performance of SQL Server integration with the .NET Fra

#clr-integration#performance
Programming model restrictions
Architecture

No description available.

#clr-integration#programming-model-restrictions
Register
Architecture

In order to use a user-defined type (UDT) in SQL Server, you must register it.

#clr-integration#register
Requirements
Architecture

No description available.

#clr-integration#requirements
Restrictions
Architecture

This article discusses the restrictions associated with code executing in the SQL Server process through context and regular connections. When develo

#clr-integration#restrictions
Retrieving UDT data
Architecture

To create a user-defined type (UDT) on the client, the assembly registered as a UDT in a SQL Server database must be available to the client application.

#clr-integration#retrieving-udt-data
Scalar-valued
Architecture

A scalar-valued function (SVF) returns a single value, such as a string, integer, or bit value.

#clr-integration#scalar-valued
SQL Server Express LocalDB Header & Version Information
Architecture

No description available.

#clr-integration#sql-server-express-localdb-header-version-information
SqlContext Object
Architecture

SqlContext object You invoke managed code in the server when you call a procedure or function, when you call a method on a common language runtime (C

#clr-integration#sqlcontext-object
SqlDataRecord Object
Architecture

SqlDataRecord object In the .NET common language runtime (CLR), the object represents a single row of data, along with its related metadata. Manage

#clr-integration#sqldatarecord-object
SqlPipe Object
Architecture

SqlPipe object In previous versions of SQL Server, it was common to write a stored procedure (or an extended stored procedure) that sent results or o

#clr-integration#sqlpipe-object
SqlTriggerContext Object
Architecture

SqlTriggerContext object The .NET Framework common language runtime (CLR) class provides context information about the trigger.

#clr-integration#sqltriggercontext-object
srv_alloc
Architecture

Allocates memory dynamically. size Specifies the number of bytes to allocate. A pointer to the newly allocated space.

#clr-integration#srv-alloc
srv_convert
Architecture

Changes data from one data type to another. ) Important This feature will be removed in a future version of SQL Server.

#clr-integration#srv-convert
srv_describe
Architecture

Defines the column name and source and destination data types for a specific column in a row. ) Important This feature will be removed in a future v

#clr-integration#srv-describe
srv_getbindtoken
Architecture

Obtains a bind token of the transaction in the current client session that invokes the extended stored procedure. The extended stored procedure can t

#clr-integration#srv-getbindtoken
srv_got_attention
Architecture

Checks whether the current connection or task needs to be aborted and returns TRUE if the connection is killed or the batch is aborted srvproc Point

#clr-integration#srv-got-attention
srv_message_handler
Architecture

Calls the installed Extended Stored Procedure API message handler. This function is usually used to call Microsoft SQL Server from an extended stored

#clr-integration#srv-message-handler
srv_paramdata
Architecture

Returns the value of a remote stored procedure call parameter. This function has been superseded by the function. srvproc Is a pointer to the SRV_P

#clr-integration#srv-paramdata
srv_paraminfo
Architecture

Returns information about a parameter.

#clr-integration#srv-paraminfo
srv_paramlen
Architecture

Returns the data length of a remote stored procedure call parameter. This function has been superseded by the function.

#clr-integration#srv-paramlen
srv_parammaxlen
Architecture

Returns the maximum data length of a remote stored procedure call parameter. This function has been superseded by the function. srvproc Is a pointe

#clr-integration#srv-parammaxlen
srv_paramname
Architecture

Returns the name of a remote stored procedure call parameter.

#clr-integration#srv-paramname
srv_paramnumber
Architecture

Returns the number of a remote stored procedure call parameter.

#clr-integration#srv-paramnumber
srv_paramset
Architecture

Sets the value of a remote stored procedure call return parameter. This function has been superseded by the function. srvproc Is a pointer to the S

#clr-integration#srv-paramset
srv_paramsetoutput
Architecture

Sets the value of a return parameter. This function supersedes the function. srvproc Is a handle for a client connection. n Is the ordinal number

#clr-integration#srv-paramsetoutput
srv_paramstatus
Architecture

Returns the status of a particular remote stored procedure call parameter.

#clr-integration#srv-paramstatus
srv_paramtype
Architecture

Returns the data type of a remote stored procedure call parameter. srvproc Is a pointer to the SRV_PROC structure that is the handle for a particular

#clr-integration#srv-paramtype
srv_pfield
Architecture

Returns information about a database connection. srvproc Pointer identifying a database connection.

#clr-integration#srv-pfield
srv_pfieldex
Architecture

Returns a pointer to data containing the requested SRV_PROC field. srvproc Is a pointer to the SRV_PROC structure that is the handle for a particular

#clr-integration#srv-pfieldex
srv_rpcdb
Architecture

Returns the database name component for the current remote stored procedure. srvproc Is a pointer to the SRV_PROC structure that is the handle for a

#clr-integration#srv-rpcdb
srv_rpcname
Architecture

Returns the procedure name component for the current remote stored procedure. srvproc Is a pointer to the SRV_PROC structure that is the handle for a

#clr-integration#srv-rpcname
srv_rpcnumber
Architecture

Returns the number component for the current remote stored procedure call.

#clr-integration#srv-rpcnumber
srv_rpcoptions
Architecture

Returns run-time options for the current remote stored procedure. srvproc Is a pointer to the SRV_PROC structure that is the handle for a particular

#clr-integration#srv-rpcoptions
srv_rpcowner
Architecture

Returns the owner component for the current remote stored procedure. srvproc Is a pointer to the SRV_PROC structure that is the handle for a particul

#clr-integration#srv-rpcowner
srv_rpcparams
Architecture

Returns the number of parameters for the current remote stored procedure.

#clr-integration#srv-rpcparams
srv_senddone
Architecture

Sends a result completion message to the client. srvproc Is a pointer to the SRV_PROC structure that is the handle for a particular client connection

#clr-integration#srv-senddone
srv_sendmsg
Architecture

Sends a message to the client. ) Important This feature will be removed in a future version of SQL Server. Avoid using this feature in new developm

#clr-integration#srv-sendmsg
srv_sendrow
Architecture

Transmits a row of data to the client.

#clr-integration#srv-sendrow
srv_setcoldata
Architecture

Specifies the current address for a column's data. srvproc Is a pointer to the SRV_PROC structure that is the handle for a particular client connecti

#clr-integration#srv-setcoldata
srv_setcollen
Architecture

Specifies the current data length in bytes of a variable-length column or a column that allows NULL values.

#clr-integration#srv-setcollen
srv_setutype
Architecture

Sets the user-defined data type for a column in a row.

#clr-integration#srv-setutype
srv_willconvert
Architecture

Determines whether a specific data type conversion is available within the ODS Library. srctype Indicates the data type of the data to be converted.

#clr-integration#srv-willconvert
srv_wsendmsg
Architecture

Sends a Unicode message to the client. srvproc Is a pointer to the SRV_PROC structure that is the handle for a particular client connection.

#clr-integration#srv-wsendmsg
Supported .NET Framework Libraries
Architecture

With the common language runtime (CLR) hosted in SQL Server, you can author stored procedures, triggers, user-defined functions, user-defined types, a

#clr-integration#supported-net-framework-libraries
Table-valued
Architecture

A table-valued function is a user-defined function that returns a table.

#clr-integration#table-valued
Transaction Lifetimes
Architecture

No description available.

#clr-integration#transaction-lifetimes
Transaction Promotion
Architecture

Transaction promotion describes a lightweight, local transaction that can be automatically promoted to a fully distributable transaction as needed.

#clr-integration#transaction-promotion
Unicode data & server code pages
Architecture

The Extended Stored Procedure API is enabled for Unicode data; however, it isn't enabled for Unicode metadata.

#clr-integration#unicode-data-server-code-pages
Updating UDT columns with DataAdapters
Architecture

You can retrieve and modify user-defined types (UDTs) by using a and a . The code examples in this article use , which is available as a NuGet package. To add this depend

#clr-integration#updating-udt-columns-with-dataadapters
User-defined aggregates
Architecture

Aggregate functions perform a calculation on a set of values and return a single value.

#clr-integration#user-defined-aggregates
User-defined functions
Architecture

User-defined functions are routines that can take parameters, perform calculations or other actions, and return a result. You can write user-defined f

#clr-integration#user-defined-functions
User-defined types
Architecture

No description available.

#clr-integration#user-defined-types
Using System.Transactions
Architecture

The namespace provides a transaction framework that is fully integrated with ADO.NET and SQL Server common language runtime (CLR) integration. The c

#clr-integration#using-systemtransactions
Working with
Architecture

You can access user-defined type (UDT) functionality in SQL Server from the Transact-SQL language by using regular query syntax. UDTs can be used in t

#clr-integration#working-with

Xml Data

Add Business Logic
Architecture

Your business logic can be added to XML data in several ways: You can write row or column constraints to enforce domain-specific c

#xml-data#add-business-logic
Add namespaces to queries
Architecture

WITH XMLNAMESPACES (Transact-SQL) provides namespace URI support in the following way: It makes the n

#xml-data#add-namespaces-to-queries
AUTO Mode
Architecture

As described in FOR XML (SQL Server) , AUTO mode returns query results as nested XML elements. This

#xml-data#auto-mode
AUTO Mode Heuristics in Shaping Returned XML
Architecture

AUTO mode determines the shape of returned XML based on the query. In determining how elemen

#xml-data#auto-mode-heuristics-in-shaping-returned-xml
Basic Syntax
Architecture

The FOR XML mode can be RAW, AUTO, EXPLICIT, or PATH. It determines the shape of the resulting XML. F

#xml-data#basic-syntax
Canonical forms & pattern restrictions
Architecture

The XSD pattern facet allows for the restriction of the lexical space of simple types. When a

#xml-data#canonical-forms-pattern-restrictions
Change Existing Columns
Architecture

The ALTER TABLE statement supports the data type.

#xml-data#change-existing-columns
Column Names with the Path Specified as data()
Architecture

No description available.

#xml-data#column-names-with-the-path-specified-as-data
Columns that Contain a Null Value By Default
Architecture

By default, a null value in a column maps to the absence of the attribute, node, or element.

#xml-data#columns-that-contain-a-null-value-by-default
Columns with a Name
Architecture

The following are the specific conditions in which rowset columns with a name are mapped, case-sensiti

#xml-data#columns-with-a-name
Columns with a Name Specified as a Wildcard Character
Architecture

No description available.

#xml-data#columns-with-a-name-specified-as-a-wildcard-character
Columns with the Name of an XPath Node Test
Architecture

No description available.

#xml-data#columns-with-the-name-of-an-xpath-node-test
Columns without a Name
Architecture

Any column without a name will be inlined.

#xml-data#columns-without-a-name
Compare Typed to Untyped XML
Architecture

You can create variables, parameters, and columns of the type. You can optionally associate a collect

#xml-data#compare-typed-to-untyped-xml
Create Instances
Architecture

This article describes how to generate XML instances.

#xml-data#create-instances
Create Variables & Columns
Architecture

The data type is a built-in data type in SQL Server and is somewhat similar to other built-in types s

#xml-data#create-variables-columns
Create Views over Columns
Architecture

You can use an type column to create views. The following example creates a view in which t

#xml-data#create-views-over-columns
Create, Alter, & Drop Secondary Indexes
Architecture

No description available.

#xml-data#create-alter-drop-secondary-indexes
Define serialization
Architecture

No description available.

#xml-data#define-serialization
Deny Permissions
Architecture

Permission can be denied to either create a new XML schema collection or use an existing one.

#xml-data#deny-permissions
Enumeration Facets
Architecture

No description available.

#xml-data#enumeration-facets
Example: Constructing Siblings with EXPLICIT Mode
Architecture

Assume that you want to construct XML that provides sales order information. In this example,

#xml-data#example-constructing-siblings-with-explicit-mode
Example: Querying XMLType Columns
Architecture

The following query includes columns of type. The query retrieves product model ID, name, a

#xml-data#example-querying-xmltype-columns
Example: Renaming the <row> Element
Architecture

For each row in the result set, the RAW mode generates an element .

#xml-data#example-renaming-the-row-element
Example: Requesting Schemas as Results with the XMLDATA & XMLSCHEMA Options
Architecture

The following query returns the XML-DATA schema that describes the document structure. SQL

#xml-data#example-requesting-schemas-as-results-with-the-xmldata-xmlschema-options
Example: Retrieving Binary Data
Architecture

The following query returns the product photo stored in a type column. The option is specif

#xml-data#example-retrieving-binary-data
Example: Retrieving Employee Information
Architecture

This example retrieves an employee ID and employee name for each employee. In the database,

#xml-data#example-retrieving-employee-information
Example: Retrieving Product Model Information as XML
Architecture

The following query returns product model information. mode is specified in the clause. SQ

#xml-data#example-retrieving-product-model-information-as-xml
Example: Specifying a Root Element for the XML Generated by FOR XML
Architecture

No description available.

#xml-data#example-specifying-a-root-element-for-the-xml-generated-by-for-xml
Example: Specifying the CDATA Directive
Architecture

If the directive is set to , the contained data isn't entity encoded, but is put in the CDAT

#xml-data#example-specifying-the-cdata-directive
Example: Specifying the ELEMENT Directive
Architecture

This retrieves employee information and generates element-centric XML as shown in the follow

#xml-data#example-specifying-the-element-directive
Example: Specifying the ELEMENT Directive & Entity Encoding
Architecture

This example illustrates the difference between the and directives. The directive entitize

#xml-data#example-specifying-the-element-directive-entity-encoding
Example: Specifying the ELEMENTXSINIL Directive
Architecture

When you specify the ELEMENT directive to retrieve element-centric XML, if the column has a

#xml-data#example-specifying-the-elementxsinil-directive
Example: Specifying the HIDE Directive
Architecture

This example illustrates the use of the directive.

#xml-data#example-specifying-the-hide-directive
Example: Specifying the ID & IDREF Directives
Architecture

This example is almost the same as the Specifying the ELEMENTXSINIL Directive example. The

#xml-data#example-specifying-the-id-idref-directives
Example: Specifying the ID & IDREFS Directives
Architecture

No description available.

#xml-data#example-specifying-the-id-idrefs-directives
Example: Specifying the XMLTEXT Directive
Architecture

No description available.

#xml-data#example-specifying-the-xmltext-directive
Example: Specifying XSINIL with the ELEMENTS Directive
Architecture

No description available.

#xml-data#example-specifying-xsinil-with-the-elements-directive
Examples: Using AUTO Mode
Architecture

The following examples illustrate the use of AUTO mode.

#xml-data#examples-using-auto-mode
Examples: Using OPENXML
Architecture

The examples in this article show how OPENXML is used to create a rowset view of an XML document. For

#xml-data#examples-using-openxml
Examples: Using PATH Mode
Architecture

The following examples illustrate the use of PATH mode in generating XML from a SELECT query.

#xml-data#examples-using-path-mode
EXPLICIT Mode
Architecture

As described in the article, Constructing XML Using FOR XML , RAW and AUTO mode don't provide much c

#xml-data#explicit-mode
FOR XML
Architecture

09/03/2025 A query returns results as a rowset. You can optionally retrieve formal results of a SQL query as XML by specifyi

#xml-data#for-xml
FOR XML Query Compared to Nested FOR XML Query
Architecture

This article compares a single-level query to a nested query. One of the benefits of using nested q

#xml-data#for-xml-query-compared-to-nested-for-xml-query
Frequently used values with computed columns
Architecture

If queries are made principally on a few element and attribute values, you may want to promote those q

#xml-data#frequently-used-values-with-computed-columns
Generate an Inline XDR Schema
Architecture

The directive in FOR XML returns an inline XDR schema together with the query result. Howev

#xml-data#generate-an-inline-xdr-schema
Generate an Inline XSD Schema
Architecture

In a FOR XML clause, you can request that your query return an inline schema together with the query results. If you want an XDR s

#xml-data#generate-an-inline-xsd-schema
Generate Elements for NULL Values with the XSINIL Parameter
Architecture

The directive constructs XML in which each column value maps to an element in the XML. By d

#xml-data#generate-elements-for-null-values-with-the-xsinil-parameter
Generate Siblings with a Nested AUTO Mode Query
Architecture

The following example shows how to generate siblings by using a nested AUTO mode query.

#xml-data#generate-siblings-with-a-nested-auto-mode-query
Generate XML from rowsets
Architecture

You can generate an data type instance from a rowset by using FOR XML with the new directiv

#xml-data#generate-xml-from-rowsets
Invalid Characters & escape rules
Architecture

No description available.

#xml-data#invalid-characters-escape-rules
Large collections & out-of-memory conditions
Architecture

No description available.

#xml-data#large-collections-out-of-memory-conditions
Load
Architecture

You can transfer XML data into SQL Server in several ways. For example: If you have your data in an [n]text or image column in a S

#xml-data#load
Mixed type & simple content
Architecture

doesn't support restricting a mixed type to a simple content. In the following XM

#xml-data#mixed-type-simple-content
Namespace Support in PATH Mode
Architecture

Namespace support in the PATH mode is provided by using WITH NAMESPACES.

#xml-data#namespace-support-in-path-mode
Nested queries
Architecture

No description available.

#xml-data#nested-queries
Non-Deterministic content models
Architecture

No description available.

#xml-data#non-deterministic-content-models
PATH Mode
Architecture

No description available.

#xml-data#path-mode
Paths & optimization hints
Architecture

No description available.

#xml-data#paths-optimization-hints
Preprocess a schema to merge included schemas
Architecture

No description available.

#xml-data#preprocess-a-schema-to-merge-included-schemas
Query options and data
Architecture

This article describes the query options that you have to specify to query XML data. It also describes

#xml-data#query-options-and-data
RAW Mode
Architecture

RAW mode transforms each row in the query result set into an XML element that has the generi

#xml-data#raw-mode
Reference
Architecture

Every database you create has a predefined XML schema collection in the relational schema. It reserv

#xml-data#reference
Requirements & Limitations
Architecture

No description available.

#xml-data#requirements-limitations
Revoke Permissions
Architecture

The permission to create an XML schema collection can be revoked by using one of the following: Revok

#xml-data#revoke-permissions
Selective XML Indexes (SXI)
Architecture

Selective XML indexes are another type of XML index that is available to you in addition to ordinary X

#xml-data#selective-xml-indexes-sxi
Shape XML with Nested FOR XML Queries
Architecture

The following example queries the table to retrieve the and values of a specific product.

#xml-data#shape-xml-with-nested-for-xml-queries
Specify Metaproperties
Architecture

Metaproperty attributes in an XML document are attributes that describe the properties of an XML item,

#xml-data#specify-metaproperties
String Data Types
Architecture

The XML generated by the white space characters in the data is entitized.

#xml-data#string-data-types
Support for Data Types
Architecture

The articles in this section describe support for data types in SQL Server. Description FO

#xml-data#support-for-data-types
The <xsd:redefine> Element
Architecture

The W3C XSD element provides support for redefining schema components.

#xml-data#the-xsdredefine-element
The xs:QName Type
Architecture

No description available.

#xml-data#the-xsqname-type
Timestamp Data Type
Architecture

In the transformation, type values are treated as data, and is always Base64 encoded. The

#xml-data#timestamp-data-type
TYPE directive queries
Architecture

support for the xml (Transact-SQL) data type enables you to optionally request that the r

#xml-data#type-directive-queries
Unique particle attribution constraint
Architecture

No description available.

#xml-data#unique-particle-attribution-constraint
Use Full-Text Search
Architecture

You can create a full-text index on XML columns that indexes the content of the XML values, but ignore

#xml-data#use-full-text-search
Use in Applications
Architecture

This article describes the options that are available to you for working with the data type in your a

#xml-data#use-in-applications
Use Nested FOR XML Queries in ASP.NET
Architecture

No description available.

#xml-data#use-nested-for-xml-queries-in-aspnet
Use results in application code
Architecture

No description available.

#xml-data#use-results-in-application-code
Use the BINARY BASE64 Option
Architecture

If the BINARY BASE64 option is specified in the query, the binary data is returned in base64 encoding

#xml-data#use-the-binary-base64-option
Use the value() & nodes() Methods with OPENXML
Architecture

You can use multiple methods on data type in a clause to generate a rowset of extracted values. The

#xml-data#use-the-value-nodes-methods-with-openxml
User-Defined Data Types (UDT)
Architecture

doesn't support common language runtime (CLR) user-defined data types (UDTs). To use with C

#xml-data#user-defined-data-types-udt
Values for <xsd:simpleType> Declarations
Architecture

No description available.

#xml-data#values-for-xsdsimpletype-declarations
Wildcard components & content validation
Architecture

Wildcard components are used to increase flexibility in what is allowed to appear in a content model.

#xml-data#wildcard-components-content-validation
xml Data Type
Architecture

If a query specifies a column of type in the clause, column values are mapped as elements

#xml-data#xml-data-type
XML Data Type & Columns
Architecture

This article discusses the advantages and the limitations of the data type in SQL Server, and helps y

#xml-data#xml-data-type-columns
XML Indexes
Architecture

XML indexes can be created on data type columns. They index all tags, values and paths over the XML i

#xml-data#xml-indexes
XML Schema Collections
Architecture

No description available.

#xml-data#xml-schema-collections
XML System Stored Procedures
Architecture

provides the following system stored procedures that are used together with OPENX

#xml-data#xml-system-stored-procedures

Json Data

Add a root node with the ROOT option
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#add-a-root-node-with-the-root-option
Common issues
Architecture

No description available.

#json-data#common-issues
Converts data types
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#converts-data-types
Default Schema
Architecture

No description available.

#json-data#default-schema
Escapes special & control characters
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#escapes-special-control-characters
Explicit Schema
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#explicit-schema
Format nested output with PATH mode
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#format-nested-output-with-path-mode
Format results as JSON
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#format-results-as-json
Format with AUTO mode
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#format-with-auto-mode
Import documents
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance This article describes how to import JSON files into SQL Serv

#json-data#import-documents
Include null values with the INCLUDE_NULL_VALUES option
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#include-null-values-with-the-include-null-values-option
Index data
Architecture

No description available.

#json-data#index-data
Optimize with in-memory OLTP
Architecture

No description available.

#json-data#optimize-with-in-memory-oltp
Parse & transform
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#parse-transform
Path Expressions
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL database in Microsoft Fabric Use JSON

#json-data#path-expressions
Remove square brackets WITHOUT_ARRAY_WRAPPER option (SQL Server)
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance Azure Synapse Analytics (serverless SQL pool only) SQL analytics endpoint in Microsoft Fabric

#json-data#remove-square-brackets-without-array-wrapper-option-sql-server
Store documents
Architecture

2016 (13.x) and later versions Azure SQL Managed Instance The SQL Database Engine provides native JSON functions that e

#json-data#store-documents
Use output
Architecture

No description available.

#json-data#use-output
Validate, Query, & Change
Architecture

No description available.

#json-data#validate-query-change

Spatial Data

CircularString
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a collectio

#spatial-data#circularstring
CompoundCurve
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a collectio

#spatial-data#compoundcurve
Create, Construct, & Query geography Instances
Architecture

No description available.

#spatial-data#create-construct-query-geography-instances
Create, Construct, & Query geometry Instances
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric The planar spatia

#spatial-data#create-construct-query-geometry-instances
Create, Modify, & Drop Spatial Indexes
Architecture

No description available.

#spatial-data#create-modify-drop-spatial-indexes
CurvePolygon
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a topologic

#spatial-data#curvepolygon
Data Types
Architecture

No description available.

#spatial-data#data-types
Execute
Architecture

No description available.

#spatial-data#execute
GeometryCollection
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a collectio

#spatial-data#geometrycollection
Grant permissions
Architecture

No description available.

#spatial-data#grant-permissions
LineString
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a one-dimen

#spatial-data#linestring
MultiLineString
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a collectio

#spatial-data#multilinestring
MultiPoint
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a collectio

#spatial-data#multipoint
MultiPolygon
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A instance is a

#spatial-data#multipolygon
OLE automation objects in T-SQL
Architecture

Transact-SQL includes several system stored procedures that allow OLE Automation objects to be referenced in Transact-SQL batches, stored procedures,

#spatial-data#ole-automation-objects-in-t-sql
OLE automation result sets
Architecture

If an OLE Automation property or method returns data in an array with one or two dimensions, the array is returned to the client as a result set: A o

#spatial-data#ole-automation-result-sets
OLE automation return codes & error information
Architecture

The OLE automation system stored procedures return an return code that is the HRESULT returned by the underlying OLE automation operation. An HRESULT

#spatial-data#ole-automation-return-codes-error-information
OLE automation sample script
Architecture

This article contains an example of a Transact-SQL statement batch that uses the OLE Automation stored procedures to create and use a SQL-DMO SQLServe

#spatial-data#ole-automation-sample-script
Parameters
Architecture

No description available.

#spatial-data#parameters
Point
Architecture

No description available.

#spatial-data#point
Polygon
Architecture

SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric A is a two-dimen

#spatial-data#polygon
Properties
Architecture

No description available.

#spatial-data#properties
Query Spatial Data for Nearest Neighbor
Architecture

No description available.

#spatial-data#query-spatial-data-for-nearest-neighbor
Recompile
Architecture

This article describes how to recompile a stored procedure i

#spatial-data#recompile
Return data
Architecture

There are three ways of returning data from a procedure to a calling

#spatial-data#return-data
Spatial Indexes Overview
Architecture

supports spatial data and spatial indexes. A spatial index is a type of extended

#spatial-data#spatial-indexes-overview
Spatial Reference Identifiers (SRIDs)
Architecture

No description available.

#spatial-data#spatial-reference-identifiers-srids
Specify parameters
Architecture

By specifying procedure parameters

#spatial-data#specify-parameters
View definition
Architecture

No description available.

#spatial-data#view-definition
View dependencies
Architecture

This topic describes how to view s

#spatial-data#view-dependencies

Filestream

Access Data
Architecture

This article describes how to use the Transact-SQL INSERT, UPDATE, and DELETE statements to manage FILESTREAM data.

#filestream#access-data
Access data with OpenSqlFilestream
Architecture

The OpenSqlFilestream API obtains a Win32 compatible file handle for a FILESTREAM binary large object (BLOB) stored in the file system.

#filestream#access-data-with-opensqlfilestream
Access with File Input-Output APIs
Architecture

Describes how file system I/O works on a FileTable. The primary usage of FileTables is expected to be through the Windows file system and file I/O AP

#filestream#access-with-file-input-output-apis
Access with T-SQL
Architecture

Describes how Transact-SQL data manipulation language (DML) commands work with FileTables. The following considerations apply to Operations on FileT

#filestream#access-with-t-sql
Avoid Conflicts
Architecture

Applications that use SqlOpenFilestream() to open Win32 file handles for reading or writing FILESTREAM BLOB data can encounter conflict errors with Tr

#filestream#avoid-conflicts
Clustered index
Architecture

You can create clustered indexes on tables by using SQL Server Management Studio or Transact

#filestream#clustered-index
Compare Options for Storing Blobs
Architecture

Discusses and compares the options that are available for storing files and documents in SQL Server. A large percentage of enterprise data is unstruc

#filestream#compare-options-for-storing-blobs
Computed Columns
Architecture

You can define indexes on computed columns as long as the following requirements are met: Ow

#filestream#computed-columns
Configure a Firewall
Architecture

To use FILESTREAM in a firewall-protected environment, both the client and server must be able to resolve DNS names to the server that contains the FI

#filestream#configure-a-firewall
Configure parallel operations
Architecture

This article defines max degree of parallelism and explains how to modify this setting in SQL

#filestream#configure-parallel-operations
Create a Table
Architecture

This topic shows how to create a table for storing FILESTREAM data. When the database has a FILESTREAM filegroup, you can create or modify tables to s

#filestream#create-a-table
Create Client Applications
Architecture

You can use Win32 APIs to read and write data to a FILESTREAM BLOB. The following steps are required: Read the FILESTREAM file path. Read the curren

#filestream#create-client-applications
Create, Alter, & Drop
Architecture

09/29/2025 Describes how to create a new FileTable, or alter or drop an existing FileTable. A FileTable is a specialized user table that has a predefined and fixed schema. T

#filestream#create-alter-drop
Data loading guidance
Architecture

No description available.

#filestream#data-loading-guidance
Data warehouse
Architecture

Columnstore indexes, in conjunction with partitioning, are e

#filestream#data-warehouse
DDL, Functions, Stored Procedures, & Views
Architecture

Lists the Transact-SQL statements and the SQL Server database objects that support FILESTREAM. For the list of database objects that support the File

#filestream#ddl-functions-stored-procedures-views
Defragment
Architecture

No description available.

#filestream#defragment
Delete
Architecture

This topic describes how to delete (drop) an index in SQL Server by using SQL Server Managem

#filestream#delete
Described
Architecture

No description available.

#filestream#described
Design guidance
Architecture

No description available.

#filestream#design-guidance
Directories & Paths
Architecture

Describes the directory structure in which the files are stored in FileTables. You can use the following three functions to work with FileTable direct

#filestream#directories-paths
Disable
Architecture

This article describes how to disable an index or constraints in SQL Server by using SQL Serv

#filestream#disable
Disk space example
Architecture

Whenever an index is created, rebuilt, or dropped, disk space for both the old (source) and n

#filestream#disk-space-example
Disk space requirements
Architecture

Disk space is an important consideration when you create, rebuild, or drop indexes. Inadequat

#filestream#disk-space-requirements
Enable
Architecture

This article describes how to enable a disabled index in SQL Server by using SQL Server Mana

#filestream#enable
Enable & Configure
Architecture

Before you can start to use FILESTREAM, you must enable FILESTREAM on the instance of the SQL Server Database Engine.

#filestream#enable-configure
FILESTREAM
Architecture

09/03/2025 - Windows only FILESTREAM enables SQL Server-based applications to store unstructured data, such as documents and images, on the file system.

#filestream#filestream
FileTable
Architecture

The FileTable feature brings support for the Windows file namespace and compatibility with Windows applications to the file data stored in SQL Server.

#filestream#filetable
Filtered index
Architecture

This article describes how to create a filtered index using SQL Server Management Studio (SS

#filestream#filtered-index
Guidelines
Architecture

When you perform online index operations, the following guidelines apply: Clustered indexes

#filestream#guidelines
Heaps (tables without a clustered index)
Architecture

A heap is a table without a clustered index. One or more nonclustered indexes can be created

#filestream#heaps-tables-without-a-clustered-index
How it works
Architecture

No description available.

#filestream#how-it-works
Index Properties F1 Help
Architecture

The sections in this topic refer to various index properties that are available by using SQL

#filestream#index-properties-f1-help
Interoperability
Architecture

No description available.

#filestream#interoperability
Load Files
Architecture

Describes how to load or migrate files into FileTables. The method that you choose for loading or migrating files into a FileTable depends on where t

#filestream#load-files
Make Partial Updates t
Architecture

An application uses FSCTL_SQL_FILESTREAM_FETCH_OLD_CONTENT to make partial updates to FILESTREAM BLOB data.

#filestream#make-partial-updates-t
Manage
Architecture

Describes common administrative tasks for managing FileTables. To get a list of FileTables, query one of the following catalog views: sys.filetables

#filestream#manage
Modify
Architecture

This topic describes how to modify an index in SQL Server by using SQL Server Management Stu

#filestream#modify
Move a Database
Architecture

This article shows how to move a FILESTREAM-enabled database. 1. In SQL Server Management Studio, select to open the Query Editor. 2.

#filestream#move-a-database
Move to a different filegroup
Architecture

This topic describes how to move an existing index from its current filegroup to a different filegroup in SQL Server by using SQL Server Managemen

#filestream#move-to-a-different-filegroup
Nonclustered index
Architecture

You can create nonclustered indexes in SQL Server by using SQL Server Management Studio or T

#filestream#nonclustered-index
Query performance
Architecture

This article includes recommendati

#filestream#query-performance
Real-time operational analytics
Architecture

2016 (13.x) introduces real-time operational analytics, the ability to run both a

#filestream#real-time-operational-analytics
Remote Blob Store (RBS)
Architecture

Remote BLOB Store (RBS) is an optional add-on component that lets database administrators store binary large objects in commodity storage s

#filestream#remote-blob-store-rbs
Rename
Architecture

This topic describes how to rename an index in SQL Server by using SQL Server Management Stu

#filestream#rename
Reorganize & rebuild
Architecture

No description available.

#filestream#reorganize-rebuild
Schema
Architecture

Describes the pre-defined and fixed schema of a FileTable. Description variable A that identifies the position of this item. The position of t

#filestream#schema
Set Options
Architecture

This topic describes how to modify the properties of an index in SQL Server by using SQL Ser

#filestream#set-options
Set Up on a Failover Cluster
Architecture

This topic describes how to enable FILESTREAM on a failover cluster.

#filestream#set-up-on-a-failover-cluster
SORT_IN_TEMPDB
Architecture

No description available.

#filestream#sort-in-tempdb
Specify fill factor
Architecture

No description available.

#filestream#specify-fill-factor
Transaction log disk space
Architecture

No description available.

#filestream#transaction-log-disk-space
Tune nonclustered indexes with missing index suggestions
Architecture

No description available.

#filestream#tune-nonclustered-indexes-with-missing-index-suggestions
Unique index
Architecture

This topic describes how to create a unique index on a table in SQL Server by using SQL Serve

#filestream#unique-index
What's new
Architecture

Warehouse in Microsoft Fabric SQL database in Microsoft Fabric Learn about which columnstore featur

#filestream#whats-new
With included columns
Architecture

No description available.

#filestream#with-included-columns

Service Broker

Administration (Service Broker)
Architecture

09/11/2025 This section describes the tasks that are involved in administering a database that hosts a Service Broker application. Most administr

#service-broker#administration-service-broker
Backing Up and Restoring Service Broker Applications
Architecture

09/11/2025 Backup and restore procedures for a Service Broker service are integrated with the database in which the service runs. If the service

#service-broker#backing-up-and-restoring-service-broker-applications
Benefits of Programming with Service Broker
Architecture

08/29/2025 Queuing and asynchronous messaging are needed for many database applications today.

#service-broker#benefits-of-programming-with-service-broker
Broker System Messages
Architecture

08/29/2025 Service Broker uses three system message types to communicate status and error information from Service Broker. Most of the messages

#service-broker#broker-system-messages
Building Applications with Service Broker
Architecture

08/29/2025 Any program that can run Transact-SQL statements can use Service Broker. A Service Broker application can be implemented as a program

#service-broker#building-applications-with-service-broker
Certificates and Service Broker
Architecture

08/29/2025 This article describes how SQL Server uses certificates for Service Broker remote security. Service Broker remote security refers to o

#service-broker#certificates-and-service-broker
Certificates for Dialog Security
Architecture

08/29/2025 When a conversation begins, Service Broker uses remote service bindings to locate the certificate to use for the conversation.

#service-broker#certificates-for-dialog-security
Choosing a Startup Strategy
Architecture

08/29/2025 This article describes options for Service Broker activation. Service Broker supports asynchronous, queued messaging. Because conversa

#service-broker#choosing-a-startup-strategy
Completing a Conversation Between Databases
Architecture

09/11/2025 This tutorial is intended for users who are new to Service Broker, but are familiar with database concepts and Transact-SQL statements

#service-broker#completing-a-conversation-between-databases
Completing a Conversation Between Instances
Architecture

08/29/2025 This tutorial is intended for users who are new to Service Broker, but are familiar with database concepts and Transact-SQL statements

#service-broker#completing-a-conversation-between-instances
Completing a Conversation in a Single Database
Architecture

09/04/2025 This tutorial is intended for users who are new to Service Broker, but are familiar with database concepts and Transact-SQL statements

#service-broker#completing-a-conversation-in-a-single-database
Contracts
Architecture

08/29/2025 A contract defines which message types an application uses to accomplish a particular task.

#service-broker#contracts
Conversation Architecture
Architecture

08/29/2025 All Service Broker applications communicate through conversations.

#service-broker#conversation-architecture
Conversation Group Locks
Architecture

No description available.

#service-broker#conversation-group-locks
Conversation Groups
Architecture

08/29/2025 A conversation group identifies a group of related conversations.

#service-broker#conversation-groups
Conversation Priorities
Architecture

No description available.

#service-broker#conversation-priorities
Creating a Remote Service Binding
Architecture

09/16/2025 To exchange messages with Service Broker, you must create the appropriate user security context. The most flexible way to do this is w

#service-broker#creating-a-remote-service-binding
Creating Service Broker Applications
Architecture

08/29/2025 This section provides a general overview of the structure of a Service Broker application, discusses some of the most common strategie

#service-broker#creating-service-broker-applications
Creating Service Broker Contracts
Architecture

08/29/2025 Contracts define the name of a specific business task and list the message types used in that task.

#service-broker#creating-service-broker-contracts
Creating Service Broker Message Types
Architecture

08/29/2025 A message type defines the name of a specific kind of message and the validation that Service Broker performs on that kind of message.

#service-broker#creating-service-broker-message-types
Creating Service Broker Objects
Architecture

08/29/2025 An application uses Service Broker by executing Transact-SQL statements that operate on Service Broker objects defined in a database.

#service-broker#creating-service-broker-objects
Creating Service Broker Queues
Architecture

08/29/2025 A queue holds incoming messages for a service.

#service-broker#creating-service-broker-queues
Creating Service Broker Services
Architecture

08/29/2025 The definition of a Service Broker service includes the names of the contracts for which the service is a target.

#service-broker#creating-service-broker-services
Designing and Implementing (Service Broker)
Architecture

09/11/2025 This section provides high-level information that can help when you design and implement your Service Broker applications. Descriptio

#service-broker#designing-and-implementing-service-broker
Determining the Dialog Security Type
Architecture

09/11/2025 The type of dialog security that's used for a conversation depends on the options in the statement, the settings on the remote service

#service-broker#determining-the-dialog-security-type
Developer Responsibilities for Service Broker
Architecture

08/29/2025 The application developer is responsible for designing the Service Broker application and creating elements that require programming.

#service-broker#developer-responsibilities-for-service-broker
Dialog Conversations
Architecture

08/29/2025 All messages sent by Service Broker are part of a conversation. A dialog is a conversation between two services. A dialog is a reliabl

#service-broker#dialog-conversations
Error Handling for Service Broker
Architecture

08/29/2025 Error handling in an application that uses Service Broker has two distinct aspects. First, the application must handle errors raised b

#service-broker#error-handling-for-service-broker
Event-Based Activation
Architecture

08/29/2025 SQL Server provides a queue activation event to notify external applications when a queue has messages to process. This topic describe

#service-broker#event-based-activation
Handling Poison Messages
Architecture

No description available.

#service-broker#handling-poison-messages
Handling Service Broker Error Messages
Architecture

08/29/2025 Service Broker applications must handle two types of error messages received from conversations: error messages created by an applicat

#service-broker#handling-service-broker-error-messages
Handling Transact-SQL Errors (Service Broker)
Architecture

08/29/2025 Two general principles apply when handling Transact-SQL errors in a Service Broker application. First, an application shouldn't perman

#service-broker#handling-transact-sql-errors-service-broker
How to: Activate Service Broker Message Delivery in Databases (Transact-SQL)
Architecture

テ Summarize this article for me By default, Service Broker is enabled and message delivery is active in a database when the database is create

#service-broker#how-to-activate-service-broker-message-delivery-in-databases-transact-sql
How to: Activate Service Broker Message Forwarding (Transact-SQL)
Architecture

08/29/2025 Message forwarding allows an instance of SQL Server to accept messages from outside the instance and send those messages to a differen

#service-broker#how-to-activate-service-broker-message-forwarding-transact-sql
How to: Activate Service Broker Networking (Transact-SQL)
Architecture

08/29/2025 Service Broker doesn't send or receive messages over the network by default.

#service-broker#how-to-activate-service-broker-networking-transact-sql
How to: Allow Service Broker Network Access by Using Certificates (Transact-SQL)
Architecture

No description available.

#service-broker#how-to-allow-service-broker-network-access-by-using-certificates-transact-sql
How to: Allow Service Broker Network Access by Using Windows Authentication (Transact-SQL)
Architecture

No description available.

#service-broker#how-to-allow-service-broker-network-access-by-using-windows-authentication-transact-sql
How to: Configure Initiating Services for Anonymous Dialog Security (Transact-SQL)
Architecture

08/29/2025 SQL Server uses dialog security for any conversation to a service for which a remote service binding exists.

#service-broker#how-to-configure-initiating-services-for-anonymous-dialog-security-transact-sql
How to: Configure Initiating Services for Full Dialog Security (Transact-SQL)
Architecture

No description available.

#service-broker#how-to-configure-initiating-services-for-full-dialog-security-transact-sql
How to: Configure Permissions for a Local Service (Transact-SQL)
Architecture

09/11/2025 SQL Server enforces permission for each service and permissions for each queue.

#service-broker#how-to-configure-permissions-for-a-local-service-transact-sql
How to: Configure Target Services for Anonymous Dialog Security (Transact-SQL)
Architecture

No description available.

#service-broker#how-to-configure-target-services-for-anonymous-dialog-security-transact-sql
How to: Configure Target Services for Full Dialog Security (Transact-SQL)
Architecture

No description available.

#service-broker#how-to-configure-target-services-for-full-dialog-security-transact-sql
How to: Create Certificates for Service Broker Transport Security (Transact-SQL)
Architecture

No description available.

#service-broker#how-to-create-certificates-for-service-broker-transport-security-transact-sql
How to: Deactivate Service Broker Message Delivery in Databases (Transact-SQL)
Architecture

09/02/2025 When message delivery isn't active, messages remain in the transmission queue.

#service-broker#how-to-deactivate-service-broker-message-delivery-in-databases-transact-sql
How to: Deactivate Service Broker Message Forwarding (Transact-SQL)
Architecture

09/02/2025 Message forwarding allows an instance of SQL Server to accept messages from outside the instance and send those messages to a differen

#service-broker#how-to-deactivate-service-broker-message-forwarding-transact-sql
How to: Deactivate Service Broker Networking (Transact-SQL)
Architecture

09/02/2025 Service Broker sends and receives messages over the network while any Service Broker endpoint is in the state. To deactivate Service

#service-broker#how-to-deactivate-service-broker-networking-transact-sql
How to: Pause Service Broker Networking (Transact-SQL)
Architecture

09/02/2025 Service Broker sends and receives messages over the network while any endpoint for Service Broker is in the state. To pause Service B

#service-broker#how-to-pause-service-broker-networking-transact-sql
How to: Resume Service Broker Networking (Transact-SQL)
Architecture

09/02/2025 Service Broker sends and receives messages over the network while any endpoint for Service Broker is in the state. To resume Service

#service-broker#how-to-resume-service-broker-networking-transact-sql
How to: Retrieve Information from a Service Broker Error Message (Transact-SQL)
Architecture

SQL) 09/02/2025 A message of type is a Service Broker error message.

#service-broker#how-to-retrieve-information-from-a-service-broker-error-message-transact-sql
Identity and Access Control (Service Broker)
Architecture

No description available.

#service-broker#identity-and-access-control-service-broker
Implementing Internal Activation
Architecture

09/03/2025 This tutorial is intended for users who are new to Service Broker, but are familiar with database concepts and Transact-SQL statements

#service-broker#implementing-internal-activation
Internal Activation Context
Architecture

09/03/2025 This article describes the execution context for a stored procedure that is started by internal activation.

#service-broker#internal-activation-context
Lesson 1: Creating the Base Conversation Objects
Architecture

09/04/2025 In this lesson, learn how to build all the objects that enable a database to support a conversation in the database. Copy and paste t

#service-broker#lesson-1-creating-the-base-conversation-objects
Lesson 1: Creating the Conversation Objects
Architecture

09/04/2025 In this lesson, you learn to build all the objects that enable a database to support a conversation in the database. Copy and paste t

#service-broker#lesson-1-creating-the-conversation-objects
Lesson 1: Creating the Databases
Architecture

09/04/2025 In this lesson, you learn to create the databases and enable the trustworthy option. Copy and paste the following code into a Query Ed

#service-broker#lesson-1-creating-the-databases
Lesson 1: Creating the Target Database
Architecture

No description available.

#service-broker#lesson-1-creating-the-target-database
Lesson 2: Beginning a Conversation and Transmitting Messages
Architecture

09/04/2025 In this lesson, you learn to start a conversation, complete a simple request-reply message cycle, and then end the conversation. Copy

#service-broker#lesson-2-beginning-a-conversation-and-transmitting-messages
Lesson 2: Creating an Internal Activation Procedure
Architecture

09/04/2025 In this lesson, you learn to create a stored procedure to process messages from a Service Broker queue. You also learn how to specify

#service-broker#lesson-2-creating-an-internal-activation-procedure
Lesson 2: Creating the Initiator Database
Architecture

09/04/2025 In this lesson, you learn to create the initiator database and all the initiator Service Broker objects that are used in this tutorial

#service-broker#lesson-2-creating-the-initiator-database
Lesson 2: Creating the Target Conversation Objects
Architecture

09/04/2025 In this lesson, you learn to build all the objects that enable a database to be the target of a conversation from another database. C

#service-broker#lesson-2-creating-the-target-conversation-objects
Lesson 3: Beginning a Conversation and Transmitting Messages
Architecture

No description available.

#service-broker#lesson-3-beginning-a-conversation-and-transmitting-messages
Lesson 3: Completing the Target Conversation Objects
Architecture

No description available.

#service-broker#lesson-3-completing-the-target-conversation-objects
Lesson 3: Creating the Initiator Conversation Objects
Architecture

09/11/2025 In this lesson, you learn to build all the objects that enable a database to initiate a conversation with another database.

#service-broker#lesson-3-creating-the-initiator-conversation-objects
Lesson 3: Dropping the Conversation Objects
Architecture

09/11/2025 In this lesson, you learn to drop the objects that enabled a database to support a conversation in the database. Copy and paste the f

#service-broker#lesson-3-dropping-the-conversation-objects
Lesson 4: Beginning a Conversation and Transmitting Messages
Architecture

09/04/2025 In this lesson, you learn to start a conversation that spans two databases in the same instance of the Database Engine.

#service-broker#lesson-4-beginning-a-conversation-and-transmitting-messages
Lesson 4: Beginning the Conversation
Architecture

No description available.

#service-broker#lesson-4-beginning-the-conversation
Lesson 4: Dropping the Conversation Objects
Architecture

No description available.

#service-broker#lesson-4-dropping-the-conversation-objects
Lesson 5: Receiving a Request and Sending a Reply
Architecture

09/11/2025 In this lesson, you learn how to receive a request message from the target queue and send a reply message to the initiator service. Ru

#service-broker#lesson-5-receiving-a-request-and-sending-a-reply
Lesson 6: Receiving the Reply and Ending the Conversation
Architecture

09/11/2025 In this lesson, you learn to receive the reply message from the target service and end the conversation. Open SQL Server Management St

#service-broker#lesson-6-receiving-the-reply-and-ending-the-conversation
Logical Architecture [Service Broker]
Architecture

09/11/2025 Service Broker applications consist of Service Broker database objects and one or more applications that use those objects.

#service-broker#logical-architecture-service-broker
Managing Conversation Priorities
Architecture

No description available.

#service-broker#managing-conversation-priorities
Managing Forwarding (Service Broker)
Architecture

09/03/2025 Message forwarding allows a SQL Server instance to forward Service Broker messages between two or more other instances of SQL Server.

#service-broker#managing-forwarding-service-broker
Managing Queues and Messages
Architecture

09/11/2025 When a Service Broker application is in production, most day-to-day management occurs as a normal part of maintenance of the Database

#service-broker#managing-queues-and-messages
Managing Routing
Architecture

09/04/2025 Service Broker uses routes to determine where to deliver messages. This section describes considerations for managing routing.

#service-broker#managing-routing
Managing Security (Service Broker)
Architecture

09/11/2025 Service Broker provides a flexible security framework for helping you secure your applications.

#service-broker#managing-security-service-broker
Managing Service Broker Applications
Architecture

09/11/2025 For a Service Broker application that's in production, most day-to-day management occurs as a normal part of database maintenance. Thi

#service-broker#managing-service-broker-applications
Managing Service Broker Identities
Architecture

09/03/2025 Each database contains a unique identifier that is used for routing Service Broker messages to that database. This topic describes Ser

#service-broker#managing-service-broker-identities
Mapping Remote Principals to Local Principals
Architecture

09/11/2025 Service Broker dialog security uses certificates to map remote operations to a local security principal.

#service-broker#mapping-remote-principals-to-local-principals
Message Retention
Architecture

09/11/2025 When a queue specifies message retention, Service Broker doesn't delete messages from the queue until the conversation ends. Further,

#service-broker#message-retention
Message Types
Architecture

09/11/2025 Applications that use Service Broker communicate by sending messages to each other as part of a conversation.

#service-broker#message-types
Messages
Architecture

09/11/2025 Messages are the information exchanged between applications that use Service Broker. Each message is part of a conversation. A message

#service-broker#messages
Migration (Service Broker)
Architecture

09/10/2025 The usual process for migrating a Service Broker application is to move the database that contains the application to another instance

#service-broker#migration-service-broker
Naming Service Broker Objects
Architecture

09/11/2025 This article describes considerations for naming service broker objects. The conventions differ slightly for public interface objects,

#service-broker#naming-service-broker-objects
Networking and Remote Security
Architecture

09/11/2025 To help enable secure, reliable communication between different instances of SQL Server, Service Broker includes features to let you m

#service-broker#networking-and-remote-security
New Installation (Service Broker)
Architecture

09/10/2025 To install a Service Broker service, the developer gives the administrator a set of installation scripts.

#service-broker#new-installation-service-broker
Performance (Service Broker)
Architecture

No description available.

#service-broker#performance-service-broker
Planning for Service Broker Development
Architecture

09/03/2025 Review the following as you design a Service Broker application: The metrics concerning the type and volume of input and output expected from your application. The requirements for your

#service-broker#planning-for-service-broker-development
Querying Queues
Architecture

09/11/2025 Sometimes it might be necessary to inspect the content of a queue as a whole.

#service-broker#querying-queues
Queues
Architecture

09/11/2025 Queues store messages.

#service-broker#queues
Remote Service Bindings
Architecture

No description available.

#service-broker#remote-service-bindings
Removing Poison Messages
Architecture

09/11/2025 A poison message is a message containing information that an application can't successfully process.

#service-broker#removing-poison-messages
Routes
Architecture

09/04/2025 Service Broker uses routes to determine where to deliver messages. When a service sends a message on a conversation, SQL Server uses r

#service-broker#routes
Security Overview (Service Broker)
Architecture

08/29/2025 Service Broker helps you write highly scalable database applications that are also secure and reliable. Service Broker security allows

#service-broker#security-overview-service-broker
Sequence Properties
Architecture

Creates a sequence object and specifies its properties. A sequence is a user-defined schema

#service-broker#sequence-properties
Service Architecture
Architecture

09/12/2025 This section describes the database objects that specify the basic design of an application that uses Service Broker. At design time,

#service-broker#service-architecture
Service Broker Activation
Architecture

09/11/2025 Service Broker activation helps applications to scale dynamically to match the message traffic. In general, an application uses activa

#service-broker#service-broker-activation
Service Broker Application Outline
Architecture

09/11/2025 Most Service Broker applications follow the same basic steps to receive and process messages: 1. The application begins a transaction.

#service-broker#service-broker-application-outline
Service Broker Applications
Architecture

09/10/2025 Service Broker applications are made up of one or more programs and the database objects that those programs use. Applications communi

#service-broker#service-broker-applications
Service Broker Communication Protocols
Architecture

09/03/2025 Service Broker uses a broker-specific protocol to communicate with remote brokers.

#service-broker#service-broker-communication-protocols
Service Broker Configuration Notice Service
Architecture

09/12/2025 You can create a Broker Configuration Notice (BCN) service on an initiating server which automatically binds conversations to a specif

#service-broker#service-broker-configuration-notice-service
Service Broker Dialog Security
Architecture

09/03/2025 Dialog security provides encryption, remote authentication, and remote authorization for a specific conversation. When a conversation

#service-broker#service-broker-dialog-security
Service Broker Dynamic Routing
Architecture

09/11/2025 For most scenarios, Service Broker applications use routes configured by an administrator. In some cases, you might need to dynamicall

#service-broker#service-broker-dynamic-routing
Service Broker Endpoints
Architecture

09/11/2025 SQL Server uses Service Broker endpoints for Service Broker communication outside of the SQL Server instance. An endpoint is a SQL Se

#service-broker#service-broker-endpoints
Service Broker Message Forwarding
Architecture

09/11/2025 Service Broker message forwarding allows an instance of SQL Server to accept messages from outside the instance and send those message

#service-broker#service-broker-message-forwarding
Service Broker Programming Concepts
Architecture

09/15/2025 Service Broker introduces concepts that are unique to developing a Service Broker application.

#service-broker#service-broker-programming-concepts
Service Broker Routing
Architecture

09/11/2025 This article describes the details of how Service Broker routes messages. For an overview, see Routes .

#service-broker#service-broker-routing
Service Broker Routing and Networking
Architecture

09/15/2025 Service Broker communications are designed around reliable, asynchronous message delivery.

#service-broker#service-broker-routing-and-networking
Service Broker Routing Examples
Architecture

09/11/2025 This section presents examples of the Service Broker routing process.

#service-broker#service-broker-routing-examples
Service Broker Scalability
Architecture

09/15/2025 Service Broker is designed to help your database applications scale well, whether you scale up or scale out.

#service-broker#service-broker-scalability
Service Broker Transport Security
Architecture

09/15/2025 Service Broker transport security allows database administrators to restrict network connections to a database and can encrypt message

#service-broker#service-broker-transport-security
Service Script Example
Architecture

09/15/2025 This Transact-SQL code sample defines a service that archives untyped XML documents.

#service-broker#service-script-example
Services
Architecture

09/15/2025 A Service Broker service is a name for a specific business task or set of business tasks. Conversations occur between services. Servic

#service-broker#services
Starting and Stopping the Queue
Architecture

09/08/2025 Use the statement to start and stop a queue. When a queue is started, the queue is available to send and receive messages.

#service-broker#starting-and-stopping-the-queue
State Management
Architecture

09/11/2025 An application that maintains state typically stores that state in database tables.

#service-broker#state-management
Stopping and Starting Service Broker Applications
Architecture

09/11/2025 Sometimes it might be necessary to temporarily stop a Service Broker application.

#service-broker#stopping-and-starting-service-broker-applications
Threat and Vulnerability Mitigation (Service Broker)
Architecture

09/11/2025 This section describes how you can mitigate threats and vulnerabilities in your Service Broker applications. Description Certificate

#service-broker#threat-and-vulnerability-mitigation-service-broker
Transactional Messaging
Architecture

09/10/2025 The foundation of the Service Broker programming model is transactional messaging.

#service-broker#transactional-messaging
Transmission Queue
Architecture

09/11/2025 Service Broker uses a transmission queue as a holding area for messages. Each database contains a separate transmission queue.

#service-broker#transmission-queue
Troubleshooting Activation Stored Procedures
Architecture

09/11/2025 Activated stored procedures run on a background session. Therefore, the techniques for troubleshooting an activation stored procedure

#service-broker#troubleshooting-activation-stored-procedures
Troubleshooting Conversation Priorities
Architecture

09/03/2025 This article provides suggestions for correcting common symptoms related to Service Broker conversation priorities. Use the column t

#service-broker#troubleshooting-conversation-priorities
Troubleshooting Routing and Message Delivery
Architecture

09/15/2025 This section provides suggestions to correct common problems related to routing and message delivery. If messages aren't successfully

#service-broker#troubleshooting-routing-and-message-delivery
Troubleshooting Tools (Service Broker)
Architecture

08/29/2025 Service Broker provides several tools to diagnose configuration and conversation problems. Service Broker is a component of the Databa

#service-broker#troubleshooting-tools-service-broker
Typical Uses of Service Broker
Architecture

09/11/2025 Service Broker can be useful for any application that needs to perform processing asynchronously, or that needs to distribute processi

#service-broker#typical-uses-of-service-broker
Understanding Collation and Service Broker
Architecture

09/11/2025 Service Broker is designed to let services and applications communicate easily and efficiently in instances with different collation c

#service-broker#understanding-collation-and-service-broker
Understanding When Activation Occurs
Architecture

09/10/2025 The Service Broker activation process consists of two steps. First, Service Broker determines whether activation is necessary. Second,

#service-broker#understanding-when-activation-occurs
Uninstalling Service Broker Applications
Architecture

No description available.

#service-broker#uninstalling-service-broker-applications
Upgrade (Service Broker)
Architecture

09/16/2025 Service Broker operations don't change when a database or an instance of the Database Engine are upgraded. The Service Broker features available in SQL Server across supported versions.

#service-broker#upgrade-service-broker
What does service broker do?
Architecture

No description available.

#service-broker#what-does-service-broker-do