Using the SQL Execution Plan for Query Performance Tuning

There are number of general signs in the SQL Execution Plan that indicate potentially bad performance spots on the query. For example, the most expensive operator that has the highest cost, related to the overall query cost, is a good starting point for the query performance troubleshooting. In addition, the fat arrows, that followed with thin ones, indicates... » read more

Current Size By Table using sp_spaceused

Note: This query is the most detailed. It breaks out the Used space to Data space and Index space. ReservedSpace = DataSpace + IndexSize + UnusedSpace Note: This run needs to be ran on specific database on the server. Sources:

SQL Server Agent Stuck With No History

Issue: SQL Server Agent jobs stuck in running state. No errors and no history. When trying to view history displayed error “Cannot display activity data”. SQL Server Agent Error Logs displays error message… Message: [298] SQLServer Error: 53, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not... » read more

Look for Deleted records in Log File

Look for deleted records in transaction log file. There is an undocumented function called fn_dblog which enables you to read data from your transaction log which contains very informative data about things that are happening in your database.  The function fn_dblog requires a beginning LSN and ending LSN for a transaction.  NULL is the default for this... » read more

Sample Azure SQL Price

Plan DTUs ($1.50/DTU) Data Max Size Price Basic 5 2 GB $4.99/month Standard 10 250 GB $15.00/month Standard 20 250 GB $30.00/month Can adjust plan anytime. Service tiers in the DTU-based purchase model are differentiated by a range of compute sizes with a fixed amount of included storage, fixed retention period for backups, and fixed... » read more