Measuring SQL Azure usage
A SQL Azure database resides on a physical server shared with many other SQL Azure databases. This sharing leads to resource constraints on the maximum size and operational throughput of a SQL Azure database. No data can be written to a SQL Azure database that has reached its maximum size. Connections are terminated when operational throughput limits are breached. It is therefore important that SQL Azure usage is measured to avoid the consequences of hitting resource constraints. SQL Azure exposes various dynamic management views that can be queried to measure resource usage.
SQL Azure allocates one partition for a table, and one partition for each non-clustered index in a database. As SQL Azure manages the physical allocation of a database, it does not provide operations supporting partition management. However, the sys.dm_db_partition_stats
dynamic management view contains one row for each partition allocated in the database. Consequently, the view can be queried...